File tree 2 files changed +4
-4
lines changed
src/clusterfuzz/_internal/base/tasks
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ def is_done_collecting_messages():
281
281
def get_postprocess_task ():
282
282
"""Gets a postprocess task if one exists."""
283
283
# This should only be run on non-preemptible bots.
284
- if not (task_utils .is_remotely_executing_utasks () and
284
+ if not (task_utils .is_remotely_executing_utasks () or
285
285
task_utils .get_opted_in_tasks ()):
286
286
return None
287
287
# Postprocess is platform-agnostic, so we run all such tasks on our
Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ def is_remotely_executing_utasks(task=None) -> bool:
34
34
return True
35
35
if task is None :
36
36
return False
37
- return is_task_opted_into_uworker_execution (task )
37
+ return bool ( is_task_opted_into_uworker_execution (task ) )
38
38
39
39
40
- def get_opted_in_tasks ():
40
+ def get_opted_in_tasks () -> List [ str ] :
41
41
return local_config .ProjectConfig ().get ('uworker_tasks' , [])
42
42
43
43
44
- def is_task_opted_into_uworker_execution (task ) :
44
+ def is_task_opted_into_uworker_execution (task : str ) -> bool :
45
45
# TODO(metzman): Remove this after OSS-Fuzz and Chrome are at parity.
46
46
uworker_tasks = get_opted_in_tasks ()
47
47
return task in uworker_tasks
You can’t perform that action at this time.
0 commit comments