Replies: 1 comment
-
Not bad idea. Even now with an extreme luck trying to delete a job from frontend UI might fail because it already started running. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Correct me if I'm wrong, but to my understanding we have endpoints that:
{"delete": ["prompt-id-goes-here"}
)Is it possible to add an endpoint that removes a future task based on prompt_id and cancels the current task if it's that prompt_id? Or change the
/queue
endpoint to behave in that way?The only option we have now is to have a race condition where we send one request to check if it's the current running task (probably /history or something), and then send an
interrupt
request which hopefully gets executed before the next task has started.Beta Was this translation helpful? Give feedback.
All reactions