Skip to content

Commit 5d7df36

Browse files
committed
Fix return value on run_in_worker unique
1 parent 92f3903 commit 5d7df36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plain-jobs/plain/jobs/jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ def run_in_worker(
119119
# Only need to look at in progress jobs
120120
# if we also have a unique key.
121121
# Otherwise it's up to the user to use _in_progress()
122-
if running := self._in_progress(unique_key):
122+
if self._in_progress(unique_key):
123123
span.set_attribute(ERROR_TYPE, "DuplicateJob")
124-
return running
124+
return None
125125

126126
# Is recording is not enough here... because we also record for summaries!
127127

0 commit comments

Comments
 (0)