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 Request: activate / deactivate Jobs #73

Closed
andreas-wittig opened this issue Dec 21, 2022 · 3 comments
Closed

Feature Request: activate / deactivate Jobs #73

andreas-wittig opened this issue Dec 21, 2022 · 3 comments

Comments

@andreas-wittig
Copy link
Contributor

andreas-wittig commented Dec 21, 2022

  • Yet Another Cron version: yacron-0.17.0-x86_64-unknown-linux-gnu
  • Python version: -
  • Operating System: Docker/Ubuntu

Description

we use Yacron in Docker environments. A couple of the Job-configuration entries is generated or partly replaced through String-Operations at container startup. E.g. our yaml contains
- name: job_myJob
command:
- /opt/myScript.sh
schedule: "REPLACEME_AT_STARTUP"

The schedule in turn is configured through environment variables in a Kubernets cluster. We deliver just "Yacron-Yaml-Templates" to the container (following the above pattern).

The feature request: to make above overall-setups more easy it would be convient to have a new switch "active:[true|false]", Default=true for the Job-configuration. It is then possible to privide Default Job-Yamls and let activate single Jobs at container-startup-time through configuration.

@gjcarneiro
Copy link
Owner

I prefer enabled rather than active. "active" may be confused with "running".

 - name: job_myJob
   command:
     - /opt/myScript.sh
   schedule: "REPLACEME_AT_STARTUP"
   enabled: true|false (default true)

@andreas-wittig
Copy link
Contributor Author

I agree fully! "enabled" is much more clearer.

gjcarneiro added a commit that referenced this issue Dec 31, 2022
@gjcarneiro
Copy link
Owner

fixed in 0.18

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

No branches or pull requests

2 participants