Skip to content

I can't stop the job #864

Answered by sheerlox
nsnhan127 asked this question in Q&A
Mar 6, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Looks like you're creating a new job on every button click. You would need a way to manage the jobs in your backend so you can find the right one and call the stop/start methods on it. If you have only one job to manage, maybe moving the job instantiation outside of the GET function declaration would do the trick, though not in a very clean way.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@nsnhan127
Comment options

@sheerlox
Comment options

@nsnhan127
Comment options

@sheerlox
Comment options

@nsnhan127
Comment options

Answer selected by nsnhan127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants