Skip to content

Commit 40ed698

Browse files
committed
Don't catch job not found in worker
1 parent 5fb11eb commit 40ed698

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bolt-worker/bolt/worker/workers.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,7 @@ def process_job(job_uuid):
151151

152152
request_started.send(sender=None)
153153

154-
try:
155-
job = Job.objects.get(uuid=job_uuid)
156-
except Job.DoesNotExist:
157-
logger.warning(
158-
"Job not found worker_pid=%s job_uuid=%s",
159-
worker_pid,
160-
job_uuid,
161-
)
162-
return
154+
job = Job.objects.get(uuid=job_uuid)
163155

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

0 commit comments

Comments
 (0)