We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbdce6d commit a27f1fdCopy full SHA for a27f1fd
cylc/flow/task_job_mgr.py
@@ -44,6 +44,7 @@
44
Optional,
45
Tuple,
46
Union,
47
+ cast,
48
)
49
50
from cylc.flow import LOG
@@ -1231,8 +1232,14 @@ def _prep_submit_task_job(
1231
1232
rtconfig['remote']['host'] = host_n
1233
1234
try:
- platform = get_platform(
1235
- rtconfig, itask.tdef.name, bad_hosts=self.bad_hosts
+ platform = cast(
1236
+ # We know this is not None because eval_platform() or
1237
+ # eval_host() called above ensure it is set or else we
1238
+ # return early if the subshell is still evaluating.
1239
+ 'dict',
1240
+ get_platform(
1241
+ rtconfig, itask.tdef.name, bad_hosts=self.bad_hosts
1242
+ ),
1243
1244
except PlatformLookupError as exc:
1245
itask.waiting_on_job_prep = False
0 commit comments