Skip to content

Commit 536258c

Browse files
committed
Comment about retry jobs that fail to load
1 parent 5430f90 commit 536258c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plain-worker/plain/worker/models.py

+3
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def retry_job(self, delay: int | None = None):
331331
job = jobs_registry.load_job(self.job_class, self.parameters)
332332
retry_delay = delay or job.get_retry_delay(retry_attempt)
333333

334+
# TODO a job class could have been deleted, and it would fail to load.
335+
# What do we do then? Increment the retry attempt and leave it in the db?
336+
334337
with transaction.atomic():
335338
result = job.run_in_worker(
336339
# Pass most of what we know through so it stays consistent

0 commit comments

Comments
 (0)