8000 sort the listdir of jobs, so that jobs will run in a predictable order by merpius · Pull Request #1722 · django-extensions/django-extensions · GitHub
[go: up one dir, main page]

Skip to content

sort the listdir of jobs, so that jobs will run in a predictable order #1722

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

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

merpius
Copy link
Contributor
@merpius merpius commented May 2, 2022

This makes it so that jobs will be run in alphabetic order per directory, starting with the jobs dir, then in order of time period from smallest (minutely) to largest (yearly), still contingent on the specification of time period as before. This allows the user to set the order of their jobs in a way similar to init; e.g. name the files with 00_<jobname> for it to go before 10_<jobname>

This is the simple fix for #1721

This makes it so that jobs will be run in alphabetic order per directory, starting with the jobs dir, then in order of time period from smallest (minutely) to largest (yearly), still contingent on the specification of time period as before. This allows the user to set the order of their jobs in a way similar to init; e.g. name the files with `00_<jobname>` for it to go before `10_<jobname>`
@camilonova camilonova merged commit b256420 into django-extensions:main Jun 11, 2022
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
0