-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate scheduler commands from the main scheduler code. * Put all commands behind a decorator to protect against leakage. (e.g. an import cannot be mistaken for a command/validator). * Integrate command validators in with the commands themselves. This removes the duplicate command/validate function signatures and makes validators implicit (i.e. they are called as part of the command not searched for and called separately to the command). * Make all commands async and provide a blank validator for each (i.e. add a yield at the top of each function). Note this means that command args/kwargs are now validated as part of queueing the command itself by default. * Partially addresses #3329 by making commands generators capable of returning multiple messages. * Improve interface for multi-workflow commands: - Colour formatting for success/error cases. - One line per workflow (presuming single line output). - Exceptions in processing one workflow's response caught and logged rather than interrupting other workflow's output. - Commands exit 1 if any workflow returns an error response. * Add multi-workflow test for "cylc broadcast".
- Loading branch information
1 parent
895ad2f
commit 24adfe0
Showing
33 changed files
with
1,116 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.