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

Implement locking of tasks when they are overexecuted in time #4

Closed
ghaiklor opened this issue Aug 13, 2015 · 2 comments
Closed

Implement locking of tasks when they are overexecuted in time #4

ghaiklor opened this issue Aug 13, 2015 · 2 comments

Comments

@ghaiklor
Copy link
Owner

For example, you have cron task with this schedule * * * * * *. If you run in this job hard operation like queries to database, we can make overflow in memory because of a lot parallel tasks.

@ghaiklor ghaiklor added this to the v1.1.0 milestone Aug 13, 2015
@ghaiklor
Copy link
Owner Author

Closing this task, because we can't trace async operations. So if you are using async task - it's all on you to handle execution flow.

@patrickstorm
Copy link

For those of you looking for an answer to this. I was able to get this working by .stop()ing the cron task immediately in the onTick function and then .start()ing it back up when I know the process is finished. Not perfect, but worked for my implementation.

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

No branches or pull requests

2 participants