Skip to content

Commit

Permalink
Fix logic to create scheduler job (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
vish-cs authored Jan 6, 2025
1 parent 3d024a2 commit 5c5cf1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def create_or_update_import_schedule(absolute_import_name: str, schedule: str,
req = cloud_scheduler.cloud_run_job_request(
absolute_import_name, schedule, json_encoded_config,
cloud_run_job_url, scheduler_config_dict[_GKE_SERVICE_ACCOUNT_KEY])
return cloud_scheduler.create_or_update_job(config.gcp_project_id,
config.scheduler_location,
req)
else:
raise Exception(
"Invalid executor_type %s, expects one of ('GKE', 'GAE', 'CLOUD_RUN')",
config.executor_type)

return cloud_scheduler.create_or_update_job(config.gcp_project_id,
config.scheduler_location, req)

0 comments on commit 5c5cf1f

Please sign in to comment.