MarkEdmondson1234 / googleCloudRunner

Easy R scripts on Google Cloud Platform via Cloud Run, Cloud Build and Cloud Scheduler
https://code.markedmondson.me/googleCloudRunner/
Other
80 stars 25 forks source link

Cloudbuild schedule #184

Open muschellij2 opened 2 years ago

muschellij2 commented 2 years ago

The goals of this PR are:

  1. to not fail if email is not set and you're using pubsubTarget.
  2. Allow you to construct pubsub_target from create_pubsub_target if not passed in.
  3. Check if a trigger exists and create it if not.
  4. Checks to see if a topic exists before trying to create, which was causing silent bugs as the tryCatch would fail, not because it could not create the topic, but that it already existed.
  5. Allow for a different message to be passed to a pubsub target in this cr_schedule_build