Conversation
Signed-off-by: PredictiveManish <manish.tiwari.09@zohomail.in>
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR was ported from augurlabs/augur#3411 filed by @PredictiveManish because the contribution was deemed to still be useful.
Description
This PR fixes #136
Notes for Reviewers
Changes:
Added four new configuration options in the
Celerysection:non_repo_domain_tasks_interval_in_days(default: 30 days)retry_errored_repos_interval_in_days(default: 1 day)process_contributors_interval_in_seconds(default: 3600 seconds / 1 hour)create_collection_status_records_interval_in_days(default: 1 day)Updated
setup_periodic_tasks()incelery_app.pyto read intervals from config instead of using hardcoded valuesConverted
retry_errored_reposfrom crontab-based scheduling to interval-based for consistencyAdded enable/disable functionality for all tasks (setting interval to 0 disables the task)
Improved logging messages to show the configured intervals
All tasks now follow the same pattern as
refresh_materialized_views_interval_in_days, allowing users to customize scheduling intervals or disable tasks as needed through the configuration system.Signed commits