@@ -176,7 +176,7 @@ def generate_clean_commands(cylc_version, name, log_file):
176176 return (
177177 f"{ PROFILE } ; "
178178 f"export CYLC_VERSION={ cylc_version } ; "
179- f"cylc stop '{ name } ' >/dev/null 2>&1 ; sleep 10 ; "
179+ f"cylc stop --kill '{ name } ' >/dev/null 2>&1 ; sleep 10 ; "
180180 f"cylc clean --timeout=7200 -y -q { name } "
181181 f">> { log_file } 2>&1\n "
182182 )
@@ -214,7 +214,7 @@ def generate_cylc_command(suite, wc_path, cylc_version, name):
214214 )
215215 if "revisions" in suite and suite ["revisions" ] == "heads" :
216216 command += "-S USE_HEADS=true "
217- command += f"{ os .path .join (wc_path , " rose-stem" )} "
217+ command += f"{ os .path .join (wc_path , ' rose-stem' )} "
218218 return command
219219
220220
@@ -244,10 +244,6 @@ def generate_main_job(name, suite, log_file, wc_path, cylc_version):
244244
245245 job_command = f"{ PROFILE } ; "
246246
247- # LFRic Apps heads uses a different working copy
248- if suite ["repo" ] == "lfric_apps" and suite ["revisions" ] == "heads" :
249- wc_path = wc_path + "_heads"
250-
251247 # Begin rose-stem command
252248 job_command += generate_cylc_command (suite , wc_path , cylc_version , name )
253249
@@ -282,7 +278,7 @@ def generate_cron_job(suite_name, suite, log_file):
282278
283279 date_str = f"_$({ DATE_BASE } )"
284280 name = suite_name + date_str
285- wc_path = os .path .join (CLONE_DIR , "wc_ " + suite ["repo" ])
281+ wc_path = os .path .join (CLONE_DIR , "clone_ " + suite ["repo" ])
286282
287283 header = generate_header (suite_name , suite )
288284 cron_job = generate_main_job (name , suite , log_file , wc_path , cylc_version )
0 commit comments