Skip to content

Commit

Permalink
Remove accidental not (#4448)
Browse files Browse the repository at this point in the history
We want tworkers to skip the function, not non-tworkers.
  • Loading branch information
jonathanmetzman authored Nov 26, 2024
1 parent 9cea321 commit e83c7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clusterfuzz/_internal/bot/tasks/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AlreadyRunningError(Error):
def cleanup_task_state():
"""Cleans state before and after a task is executed."""
# Cleanup stale processes.
if not environment.is_tworker():
if environment.is_tworker():
return
process_handler.cleanup_stale_processes()

Expand Down

0 comments on commit e83c7f4

Please sign in to comment.