wave
wave copied to clipboard
Create or kill a named task
Is your feature request related to a problem? Please describe
Currently, I cannot create or kill a named task using q.run or q.exec. So if I want to run an infinite loop task in the background, I have no control over it unless the task brake the loop by itself.
Describe the solution you'd like
Give an API to create and kill a task by name.
Describe alternatives you've considered
Additional context
q.run and q.exec are simple wrappers for blocking functions and executing them in the background. If want to use Python tasks yourself, there is nothing stopping you from doing so. The feature you are requesting is not going to be implemented on Wave level (as it's not really wave-related).
I suggest reading this blog post that shows various ways of accomplishing what you need.