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

How to stop an actively running cron job? #1412

Closed
1 task done
CharlesTaylor-Syn opened this issue Sep 7, 2023 · 1 comment
Closed
1 task done

How to stop an actively running cron job? #1412

CharlesTaylor-Syn opened this issue Sep 7, 2023 · 1 comment

Comments

@CharlesTaylor-Syn
Copy link

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

I am attempting to implement lightweight recurring jobs that be can scheduled dynamically, and also killed dynamically based on timeouts for each job.

To this end, I looked at the dynamic scheduling API, and saw that jobs can be scheduled or unscheduled at runtime. However, it seemed I would be unable to stop a job that is currently running.

For example it would be nice to introduce automatic timeouts for a job that has been running for too long.

Describe the solution you'd like

I'm look for some advice on my situation.

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

See above.

@CharlesTaylor-Syn CharlesTaylor-Syn changed the title Kill an actively running cron job How to stop an actively running cron job? Sep 7, 2023
@kamilmysliwiec
Copy link
Member

Please, report this issue in this repository https://github.com/kelektiv/node-cron

@nestjs nestjs locked and limited conversation to collaborators Sep 11, 2023
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

2 participants