Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

run_immediately doesn't :) #58

Open
P-T-I opened this issue May 18, 2020 · 6 comments
Open

run_immediately doesn't :) #58

P-T-I opened this issue May 18, 2020 · 6 comments

Comments

@P-T-I
Copy link

P-T-I commented May 18, 2020

Setting the boolean field run_immediately from false to true does not start the task at all. The only thing I see is that after I set the field to 'true' that several seconds later the run_immediately field is set back to 'false'. Logs show no task activity, the task involved is not started directly; it only follows the configured crontab schedule.

@rafaelreuber
Copy link
Contributor

Only celerybeat-mongo have such feature. I have checked the others ones (django-celery-beat and redbeat). I think this not so much useful. It's so easy to run task immediately.

@P-T-I
Copy link
Author

P-T-I commented May 21, 2020

I agree it is trivial however in the is_due method there are checks made for that specific setting so I reconned there should be a supported functionality behind, and if that’s the case; it’s not working...

@rafaelreuber
Copy link
Contributor

You are right, if the feature is available, it must work perfectly!

@P-T-I
Copy link
Author

P-T-I commented May 21, 2020

Can you have a look at it, or shall I?

@P-T-I
Copy link
Author

P-T-I commented May 23, 2020

@rafaelreuber, I’ve taken a look at this particular issue, looks like the functionality only works when (re)starting the daemon. Then and only then it sees documents with the “run_immediately” set to true, all “is_due” cycles after that it never rechecks the “run_immediately” set in the database...

@FlorianPfisterer
Copy link

@rafaelreuber Can you provide some hints on how to solve this? I'm happy to make a PR, but I'm not sure where to start.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants