wave icon indicating copy to clipboard operation
wave copied to clipboard

Create or kill a named task

Open Nayananga opened this issue 3 years ago • 0 comments

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

To create a named task

To kill a named task

Additional context

Nayananga avatar Feb 11 '22 15:02 Nayananga

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.

mturoci avatar Aug 16 '22 11:08 mturoci