Master issue serving as a follow-on from #2966 for the ZMQ interface.
ping_suite to ping)Thread implantation to asyncio #3328REQ-REP-REP-REP... pattern (REQ-SUB) #3329$ cylc stop suitecontacting...command queued...waiting for running tasks to complete before shutting down...DONEAssigning myself as I've looked into the REQ-REP-REP-REP... matter, however, there is plenty of room for more people...
Is this the kind of thing you are talking about? https://realpython.com/async-io-python/#chaining-coroutines
Is this the kind of thing you are talking about?
In relation to what?
Your REQ-REP-REP-REP... pattern.
No.
Care to explain?
REQ-REP-REP-REP...
- Add an option allowing the client to subscribe for updates on queued tasks e.g.:
I might be off base here, but could the client be another suite, so that this could serve as a mechanism for inter-suite triggering #2798?
I might be off base here, but could the client be another suite, so that this could serve as a mechanism for inter-suite triggering #2798?
Bad wording on my part, by "tasks" I was referring to "commands" e.g. stop_suite or ping_suite though, yes, this could potentially be utilised for efficient inter-suite triggers.
Bad wording on my part, by "tasks" I was referring to "commands" e.g.
stop_suiteorping_suitethough, yes, this could potentially be utilised for efficient inter-suite triggers.
In that case it's a good wording on your part :wink:
If others agree, could we not loose this from sight? I really hate polling solutions and hope we can get something better that is also operationally acceptable on our site (there is permissions issue to consider of research suites triggering off operational ones).
I'll add inter-suite subscription to the issue description. This is much the same functionality as the subscription the UI server will require so we will be developing this set-up anyway.
I really hate polling solutions ...
I've never entirely understood the common aversion to polling. Sometimes it is the only viable solution (when the upstream system has no ability to interact with the dependent system). And if the polling mechanism has no significant impact on performance or network traffic, then what's the problem exactly? (Maybe it does have a significant negative impact in your cases @TomekTrzeciak ?)
That said, when two-way interaction is possible I certainly agree that is better than one-way polling, and that is (now) a possibility for inter-suite triggering ... so that's fine.
I've never entirely understood the common aversion to polling
It shouldn't really be an issue for most cases.
One issue is that it doesn't work well if you have lots of short tasks. This is actually a baby step towards sub-suites.
Closing this issue as superseded by: