ezgh workflows apps update <app> [--name n] [--partitions n] [--notify-queue q [--notify-on s,…] [--notify-workflows w,…] [--notify-group-by run|workflow] | --no-notify] [flags]Rename an app (--name), give a pull app more partitions (--partitions: larger only), or change where its run results go. A push app’s endpoint changes through a sync (ezgh workflows apps sync <app> --endpoint <url>).
--notify-queue (an EZGH Queues queue’s name or ID, in the same project) sends a workflows.run.ended message there whenever one of the app’s runs ends in a status in --notify-on: completed, failed, cancelled or timedOut (comma-separated; failed,timedOut unless given). The message has the run’s ID, app, workflow, status, output (or outputRef, a path to GET, when it’s too large), error and times. --notify-workflows keeps only those workflows’ runs (every workflow unless given); on a FIFO queue, --notify-group-by sets each message’s group: run (the run ID, the default) or workflow (its name). The notification settings are replaced whole, so give --notify-queue with any of them; --no-notify turns them off.
Setting them also needs queues.messages.send on the queue; it answers 503 where EZGH Queues isn’t connected.
Part of ezgh workflows apps.
Examples
ezgh workflows apps update web --notify-queue run-results
ezgh workflows apps update web --notify-queue run-results --notify-on completed,failed --notify-workflows onboard,report
ezgh workflows apps update web --no-notifyFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--name |
string | the new name | |
--no-notify |
boolean | send no run results | |
--notify-group-by |
string | a FIFO queue’s message group: run or workflow (default run) | |
--notify-on |
strings, comma-separated or repeated | the run statuses that notify: completed, failed, cancelled, timedOut (default failed,timedOut) | |
--notify-queue |
string | send run results to this EZGH Queues queue (name or ID) | |
--notify-workflows |
strings, comma-separated or repeated | only these workflows’ runs notify (default: every workflow) | |
--partitions |
int64 | a pull app’s new, larger partition count (up to 32) |
This command also takes the global flags.