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

refactor: Move cron jobs to celery tasks #6926

Merged
merged 23 commits into from Jan 22, 2024

Conversation

jennifer-richards
Copy link
Member

@jennifer-richards jennifer-richards commented Jan 16, 2024

This creates a first batch of celery tasks to replace some of the jobs done by cron. Adds a simple management command to actually schedule the tasks, which is done with them disabled. This should be suitable for a first test deployment where we manually disable the cron task and enable its celery equivalent to see how things go.

The management command periodic_tasks --create-default will set up the schedules. Running it without any options will summarize the cron-like tasks. It also accepts --enable or --disable to enable or disable a task by its PK, although the admin interface is probably a nicer way to do this.

@jennifer-richards jennifer-richards marked this pull request as ready for review January 20, 2024 04:14
@@ -56,7 +56,7 @@ $DTDIR/ietf/bin/expire-last-calls
# Run an extended version of the rfc editor update, to catch changes
# with backdated timestamps
# Enable when removed from /a/www/ietf-datatracker/scripts/Cron-runner:
$DTDIR/ietf/bin/rfc-editor-index-updates -d 1969-01-01
$DTDIR/ietf/bin/rfc-editor-index-updates -d 1969-01-01
Copy link
Member

Choose a reason for hiding this comment

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

stray ws

@rjsparks
Copy link
Member

cronch

@rjsparks rjsparks merged commit 8d12071 into ietf-tools:main Jan 22, 2024
6 of 7 checks passed
@jennifer-richards jennifer-richards deleted the cronchy-celery branch January 23, 2024 12:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants