Project

General

Profile

Bug #91263

KeyError lors du nettoyage d'afterjobs

Added by Sentry Io 21 days ago. Updated 19 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
29 May 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/123723/

FileNotFoundError: [Errno 2] No such file or directory: b'/var/lib/wcs/xxx/afterjobs/50b533ef-8218-4f89-8d9a-72f9d747fe87'
  File "wcs/qommon/storage.py", line 585, in get_filename
    fd = open(force_bytes(filename, 'utf-8'), 'rb')  # pylint: disable=consider-using-with

KeyError: 
  File "wcs/qommon/cron.py", line 149, in cron_worker
    job.function(publisher, job=job)
  File "wcs/qommon/publisher.py", line 646, in clean_afterjobs
    job = AfterJob.get(job_id)
  File "wcs/qommon/storage.py", line 475, in get
    return cls.get_filename(
  File "wcs/qommon/storage.py", line 590, in get_filename
    raise KeyError()

Associated revisions

Revision 9885dfad (diff)
Added by Frédéric Péters 20 days ago

misc: don't crash on disappearing afterjob when cleaning up (#91263)

History

#1

Updated by Frédéric Péters 21 days ago

  • Project changed from Suivi des traces to w.c.s.
#2

Updated by Robot Gitea 21 days ago

  • Status changed from Nouveau to En cours
  • Assignee set to Frédéric Péters

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 21 days ago

  • Status changed from En cours to Solution proposée
#4

Updated by Robot Gitea 20 days ago

  • Status changed from Solution proposée to Solution validée

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

#5

Updated by Robot Gitea 20 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :

#6

Updated by Transition automatique 19 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF