From dae1bbc49f3b92d3713d2a495d16731d64a26ad3 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:46:07 -0500 Subject: [PATCH] Dont postprocess on non-linux bots (#3697) We don't want to spend their constrained time doing something a Linux bot can do. --------- Co-authored-by: Titouan Rigoudy --- src/clusterfuzz/_internal/base/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clusterfuzz/_internal/base/tasks.py b/src/clusterfuzz/_internal/base/tasks.py index 3867f1669c..d780f24b9c 100644 --- a/src/clusterfuzz/_internal/base/tasks.py +++ b/src/clusterfuzz/_internal/base/tasks.py @@ -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)