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

add option to enable/disable cronjobs #19

Closed
wants to merge 1 commit into from

Conversation

mishaschwartz
Copy link
Collaborator

@mishaschwartz mishaschwartz commented Apr 17, 2023

Add option to independently enable/disable the two cron jobs that can be run (monitor, parse logs) using environment variables.

This PR contains a minimal version of the changes made in #18.

Copy link
Collaborator

@fmigneault fmigneault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, this doesn't need any change in the code.
The docker-compose using CanarieAPI could override the cron file with only the specific items it needs to process.

By adding these options to CanarieAPI explicitly, I think it should also improve the way it reports the results on the API side as well. The JSON/HTML responses should include some information that options were disabled to indicate that last update: never is not due to an internal error or failing job.

@mishaschwartz mishaschwartz force-pushed the optional-cron branch 2 times, most recently from 1c79afd to 44bd6b3 Compare April 18, 2023 19:10
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