scipp / beamlime

Live data reduction visualisation for ESS
https://scipp.github.io/beamlime/
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Event-driven application controlling. #127

Closed YooSunYoung closed 1 month ago

YooSunYoung commented 9 months ago

The applications need to be controlled during the run-time, i.e. kill or restart. Current prototype applications have time-out and a dedicated flag that they are watching. For more flexible controlling of those apps, maybe we can use event routers.

For example, kafka brokers or message bubbling and on method in textual.

We could somehow use textual or flask or... similar third party packages, or implement them ourselves...?

YooSunYoung commented 8 months ago

Idea note from #144

Now Daemon is sending messages to a router directly. But, maybe it just have a async-generator that yields Messages as it runs. And Application can use the generator and send the message that it yields instead.

YooSunYoung commented 1 month ago

It is already implemented as a message router.