cylc / cylc-uiserver

A Jupyter Server extension that serves the cylc-ui web application for monitoring and controlling Cylc workflows.
https://cylc.org
GNU General Public License v3.0
15 stars 18 forks source link

server: migrate to new interface for starting async things #583

Open oliver-sanders opened 7 months ago

oliver-sanders commented 7 months ago

We need to run some async stuff when we start the server. Currently we are hacking this into initialize_settings:

https://github.com/cylc/cylc-uiserver/blob/b007b5f91491a2be97fa16313dfbbbe57ce7e933/cylc/uiserver/app.py#L454-L461

Jupyter Server may acquire a less hacky interface for this in the future: https://github.com/jupyter-server/jupyter_server/issues/1329

We should migrate to this in due course. Remember to bump the jupyter_server dependency when doing this.