Skip to content

Commit

Permalink
Don't catch job not found in worker
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 22, 2024
1 parent 5fb11eb commit 40ed698
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bolt-worker/bolt/worker/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,7 @@ def process_job(job_uuid):

request_started.send(sender=None)

try:
job = Job.objects.get(uuid=job_uuid)
except Job.DoesNotExist:
logger.warning(
"Job not found worker_pid=%s job_uuid=%s",
worker_pid,
job_uuid,
)
return
job = Job.objects.get(uuid=job_uuid)

logger.info(
'Executing job worker_pid=%s job_class=%s job_request_uuid=%s job_priority=%s job_source="%s"',
Expand Down

0 comments on commit 40ed698

Please sign in to comment.