Parisson / TimeSide

scalable audio processing framework and server written in Python
https://timeside.ircam.fr/docs/
GNU Affero General Public License v3.0
368 stars 60 forks source link

[API] Redefine workflow to notify client when an task status is updated #193

Open gnuletik opened 4 years ago

gnuletik commented 4 years ago

As we talked before, we need to implement a way to notify clients when a task status is updated.

For example, to add an AnalysTrack, we need to :

This mechanism is poll-based and waste bandwidth and client/server resources.

We may implement a server-based notification with other protocols like :

Also, what are the other routes / models where we need to implement this server-base notification workflow ?

Note: Feel free to edit the original ticket to add technologies / models.

Thanks !

Tointoin commented 4 years ago

Moreover, following views should be added docstring to document this workflow (relayed in schema and /api/docs/):

Both views and corresponding models may be refactored according to the defined workflow.