Skip to content

Commit dcaf5a4

Browse files
zzmaoGoogle Cloud Pipeline Components maintainers
authored andcommitted
feat(components): Fix typos: 'statgey' -> 'strategy'in v1 GCPC custom job components/utils
Signed-off-by: Ze Mao <[email protected]> PiperOrigin-RevId: 725795071
1 parent 65d1d79 commit dcaf5a4

File tree

1 file changed

+6
-5
lines changed
  • components/google-cloud/google_cloud_pipeline_components/container/v1/custom_job

1 file changed

+6
-5
lines changed

components/google-cloud/google_cloud_pipeline_components/container/v1/custom_job/remote_runner.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ def create_custom_job_with_client(job_client, parent, job_spec):
3737
# max_wait_duration is acceptable only when strategy is FLEX_START in
3838
# CustomJob API. Clear max_wait_duration if strategy is not FLEX_START.
3939
if (
40-
'scheduling' in job_spec
41-
and 'stategy' in job_spec['scheduling']
42-
and job_spec['scheduling']['strategy'] != 'FLEX_START'
43-
and 'max_wait_duration' in job_spec['scheduling']
40+
'job_spec' in job_spec
41+
and 'scheduling' in job_spec['job_spec']
42+
and 'strategy' in job_spec['job_spec']['scheduling']
43+
and job_spec['job_spec']['scheduling']['strategy'] != 'FLEX_START'
44+
and 'max_wait_duration' in job_spec['job_spec']['scheduling']
4445
):
45-
del job_spec['scheduling']['max_wait_duration']
46+
del job_spec['job_spec']['scheduling']['max_wait_duration']
4647
try:
4748
create_custom_job_fn = job_client.create_custom_job(
4849
parent=parent, custom_job=job_spec

0 commit comments

Comments
 (0)