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

Cron jobs not guaranteed to completed in specific order #87

Open
SophiaWhiteMA opened this issue Aug 31, 2021 · 5 comments
Open

Cron jobs not guaranteed to completed in specific order #87

SophiaWhiteMA opened this issue Aug 31, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@SophiaWhiteMA
Copy link
Contributor

Despite needing to execute in a specific order, the cron jobs for HGNRest are not guaranteed to do so.

Jobs are scheduled a few minutes apart under the assumption that job A will be finished by the time job B begins.

Solution: refactor the existing cron jobs into a single job that uses async / await to guarantee jobs finish in the desired order, possibly even more quickly than they currently do.

@SophiaWhiteMA SophiaWhiteMA added the bug Something isn't working label Aug 31, 2021
@one-community
Copy link
Member

one-community commented Sep 1, 2021 via email

@SophiaWhiteMA
Copy link
Contributor Author

SophiaWhiteMA commented Sep 1, 2021

That's not what I was referring to. The order of the events is fine, but the mechanism that the ordering of the events is based off of isn't guaranteed to work and is more likely to fail as the app gets more users.

@one-community
Copy link
Member

one-community commented Sep 1, 2021 via email

@SophiaWhiteMA
Copy link
Contributor Author

If Job A needs to run before B, and B before C, the way the system is currently designed, it doesn't check if A has finished executing before running B -- it just blindly runs.

@one-community
Copy link
Member

one-community commented Sep 1, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants