Skip to content

Commit

Permalink
kfp_client: fix wrong check (kubeflow#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
faweis authored and Jeffwan committed Dec 9, 2020
1 parent 9508eb4 commit 02e6e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def create_recurring_run(self, experiment_id, job_name, description=None, start_
pipeline_id=pipeline_id,
version_id=version_id)

if (interval_second is None) ^ (cron_expression is None):
if all([interval_second, cron_expression]) or not any([interval_second, cron_expression]):
raise ValueError('Either interval_second or cron_expression is required')
if interval_second is not None:
trigger = kfp_server_api.models.ApiTrigger(
Expand Down

0 comments on commit 02e6e99

Please sign in to comment.