Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created October 17, 2020 22:35
Show Gist options
  • Select an option

  • Save mesmacosta/0e69366d1e316638b3a43bcbbbec4ed7 to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/0e69366d1e316638b3a43bcbbbec4ed7 to your computer and use it in GitHub Desktop.
function create_cloud_scheduler() {
local topic_name=$1
gcloud scheduler jobs create pubsub gcs-run-postgresql-connector \
--schedule "$CRON_SCHEDULE" \
--topic $topic_name \
--message-body "sync"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment