File tree Expand file tree Collapse file tree
src/clusterfuzz/_internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ def get_task_duration(command):
101101UTASK_MAIN_QUEUE = 'utask_main'
102102PREPROCESS_QUEUE = 'preprocess'
103103
104+ SWARMING_QUEUES = {
105+ PREPROCESS_QUEUE : 'preprocess_swarming' ,
106+ UTASK_MAIN_QUEUE : 'utask_main_swarming' ,
107+ }
108+
104109# See https://github.com/google/clusterfuzz/issues/3347 for usage
105110SUBQUEUE_IDENTIFIER = ':'
106111
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ class SwarmingAPI:
3737
3838 def __init__ (self ):
3939 self ._config = get_swarming_config ()
40- self ._base_url = f"https://{ self ._config .get ('swarming_server' )} /prpc/"
40+ if self ._config :
41+ self ._base_url = f"https://{ self ._config .get ('swarming_server' )} /prpc/"
4142
4243 def _get_headers (self ) -> dict [str , str ]:
4344 """Checks config and returns headers for pRPC request.
You can’t perform that action at this time.
0 commit comments