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

config for disabling the beta_job block or delaying on startup #726

Open
malud opened this issue Feb 24, 2023 · 4 comments
Open

config for disabling the beta_job block or delaying on startup #726

malud opened this issue Feb 24, 2023 · 4 comments
Labels

Comments

@malud
Copy link
Collaborator

malud commented Feb 24, 2023

The beta_job does run on startup no matter how big the interval has been set. However, it may be required to disable a job via environment variable for some reason. A workaround could have been a huge interval which actually does not work with our startup run. So the proposal here would be to introduce a disable bool attribute which could be set to true if required.

Thoughts: how about to add an additional attribute which prevents the startup run?

e.g.:

definitions {
  beta_job "update_data" {
    # new
    disable = default(env.DISABLE_UPDATE_JOB, false)
    # or with "delay"
    interval = "1h"
    start_after_interval = true
    request "origin" {
      url = "http://my-service/api/v1/exports/data"
    }
  }
}

/cc @filex

@malud malud added the proposal label Feb 24, 2023
@filex
Copy link
Contributor

filex commented Feb 24, 2023 via email

@malud
Copy link
Collaborator Author

malud commented Mar 2, 2023

its about the default behaviour which should still be enabled? So the best default boolean is a false one.

@alex-schneider
Copy link
Contributor

@filex
Copy link
Contributor

filex commented Apr 24, 2023 via email

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

No branches or pull requests

3 participants