Skip to content

Commit

Permalink
Dont postprocess on non-linux bots (#3697)
Browse files Browse the repository at this point in the history
We don't want to spend their constrained time doing something a Linux
bot can do.

---------

Co-authored-by: Titouan Rigoudy <[email protected]>
  • Loading branch information
jonathanmetzman and letitz authored Jan 29, 2024
1 parent 5443f5e commit dae1bbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/clusterfuzz/_internal/base/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ def get_postprocess_task():
# This should only be run on non-preemptible bots.
if not task_utils.is_remotely_executing_utasks():
return None
# Postprocess is platform-agnostic, so we run all such tasks on our
# most generic and plentiful bots only. In other words, we avoid
# wasting our precious non-linux bots on generic postprocess tasks.
if not environment.platform().lower() == 'linux':
return None
pubsub_puller = PubSubPuller(POSTPROCESS_QUEUE)
logs.log('Pulling from postprocess queue')
messages = pubsub_puller.get_messages(max_messages=1)
Expand Down

0 comments on commit dae1bbc

Please sign in to comment.