Skip to content

Commit e83c7f4

Browse files
Remove accidental not (#4448)
We want tworkers to skip the function, not non-tworkers.
1 parent 9cea321 commit e83c7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clusterfuzz/_internal/bot/tasks/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AlreadyRunningError(Error):
8080
def cleanup_task_state():
8181
"""Cleans state before and after a task is executed."""
8282
# Cleanup stale processes.
83-
if not environment.is_tworker():
83+
if environment.is_tworker():
8484
return
8585
process_handler.cleanup_stale_processes()
8686

0 commit comments

Comments
 (0)