Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update cronjob name #103

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Anticmos
Copy link

Hi!

As I was making use of this project I ran into a case where if I ran the deploy twice it would not always overwrite the previous CRON job and I also did not have enough control over the name of the cron job for subsequent runs.

This can cause confusion as GCP will just spit out:

ERROR: (gcloud.scheduler.jobs.create.pubsub) ALREADY_EXISTS: Job .../jobs/cf_logs_cron already exists.

Please take a look at the addition of a new variable!

Looking forward to feedback.
Thanks!

@Anticmos
Copy link
Author

@shagamemnon
Any thoughts?

@shagamemnon
Copy link
Contributor

Thanks @Anticmos. Can you please create a default string value for the CRON_JOB_NAME in deploy.sh, for example:

# deploy.sh
CRON_JOB_NAME='cf_logs_cron'

@Anticmos
Copy link
Author

Anticmos commented Jun 6, 2023

@Anticmos
Copy link
Author

Anticmos commented Jun 12, 2023

@shagamemnon Any updates on this?

@Anticmos
Copy link
Author

@shagamemnon Any updates on this?

z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants