File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 8787TASK_END_TIME_KEY = 'task_end_time'
8888
8989POSTPROCESS_QUEUE = 'postprocess'
90- UTASK_MAIN_QUEUE = 'test-utask-main '
90+ UTASK_MAIN_QUEUE = 'utask_main '
9191PREPROCESS_QUEUE = 'preprocess'
9292
9393# See https://github.com/google/clusterfuzz/issues/3347 for usage
Original file line number Diff line number Diff line change 2323# By default, all jobs are sent to the GCP Batch backend. This can be
2424# overridden on a per-job basis by setting the `K8S_JOBS_FREQUENCY`
2525# environment variable.
26- DEFAULT_FREQUENCY = {'gcp_batch' : 0.5 , 'kubernetes' : 0.5 }
26+ DEFAULT_FREQUENCY = {'gcp_batch' : 1.0 , 'kubernetes' : 0.0 }
2727
2828
2929def _get_job_frequencies_from_env ():
Original file line number Diff line number Diff line change 1717# to be able to import dependencies directly, but we must store these in
1818# subdirectories of common so that they are shared with App Engine.
1919from clusterfuzz ._internal .base import modules
20- from clusterfuzz ._internal .batch .service import GcpBatchService
2120from clusterfuzz ._internal .remote_task import RemoteTask
21+ from clusterfuzz ._internal .remote_task import RemoteTaskGate
2222
2323modules .fix_module_search_paths ()
2424
@@ -86,9 +86,6 @@ def lease_all_tasks(task_list):
8686 yield
8787
8888
89- gcp_batch_service = GcpBatchService ()
90-
91-
9289def schedule_utask_mains ():
9390 """Schedules utask_mains from preprocessed utasks on Google Cloud Batch."""
9491
@@ -105,7 +102,7 @@ def schedule_utask_mains():
105102 RemoteTask (task .command , task .job , task .argument )
106103 for task in utask_mains
107104 ]
108- gcp_batch_service .create_uworker_main_batch_jobs (batch_tasks )
105+ RemoteTaskGate () .create_uworker_main_batch_jobs (batch_tasks )
109106
110107
111108def task_loop ():
You can’t perform that action at this time.
0 commit comments