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 migration 0487_job_st_fin_allrows_backpop #4367

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

risicle
Copy link
Member

@risicle risicle commented Jan 31, 2025

A follow-up to #4323

This updates all finished jobs more than 24h since scheduled_for to the new finished all notifications created status. why 24h? 24h is how far back the check-for-missing-rows-in-completed-jobs celery task will look and so anything older than that won't get converted to finished all notifications created automatically.

There shouldn't be any jobs that make it to 24h without all rows or being moved to a failed state by then anyway...

this updates all "finished" jobs more than 24h since scheduled_for
to the new "finished all notifications created" status. why 24h?
24h is how far back the check-for-missing-rows-in-completed-jobs
celery task will look and so anything older than that won't get
converted to "finished all notifications created" automatically.

there *shouldn't* be any jobs that make it to 24h without all rows
or being moved to a failed state by then anyway...
@risicle
Copy link
Member Author

risicle commented Jan 31, 2025

Is the squawk failure a matter of it being confused by the %(...)s parameter syntax that sqlalchemy is using?

@risicle risicle marked this pull request as ready for review January 31, 2025 15:28
@quis
Copy link
Member

quis commented Feb 12, 2025

There’s already a 487 now so you’ll need to update the version number in this PR

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