Having a Task.supervisor under a phoenix app, and using it with Task.supervisor.async_no_link
is there a way to stop the stream from running and restart the supervisor thus killing all tasks (current and coming next from the stream)?
you can get the currently running tasks with SupName.children() but since this is a stream, the children tasks are always moving. How to stop the stream, kill all and reset the supervisor to wait for other tasks ?
In general, what are you trying to achieve? What kind of stream of data are you processing? Maybe there’s a different abstraction or package that would fit the job better?
list of tasks submitted in a streamed way for instance 6 by 6
How do you do this? Where do you get this stream from? Do you use Stream module to create a stream, then pass it to Task.Supervisor.async_stream_nolink?
What I’ve said was about the stream you give to the Task.Supervisor.async_stream_nolink, not the one it returns.
biglist is a list of records
EmailTaskSupervisor is the name of the Task.Supervisor, children of application
Sender and send_email are the module and the function inside called on each element of biglist