Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T771
Change Details
Change Details
Old
New
Diff
**Problem we want to solve** A script takes some hours to complete. It runs in background. The script caretaker wants to be notified when the script is done. **Plan** Provide a notification utility accessible in CLI, so it's as easy as: ```lang=sh python3 broadwayvenues && notifyme "Broadway venues successfully processed." ``` Then, the utility send a payload to the notification center: ```lang=json { source: "harmonia@ysul.nasqueron.org", message: "Broadway venues successfully processed." } ``` The notification center then could: * send a notification to a different queue on the broker than for public notifications, so it can be processed by another application * send a mail (but `notifyme` could directly do `echo '' | mail -t "Broadway venues successfully processed." user@domail.tld`) --- ## Command example ./your-awesome-command `--service` GitHub `--project` Nasqueron `--group` Operations `--type` commit `--text` "dereckson committed ..." `--link` [https://...](https://... "") ## More information > From who? - `service: "GitHub",` - :information_source: The notification's source service (e.g. GitHub, Phabricator, Jenkins) > For whom? - `project: "Nasqueron",` - :information_source: The notification's target project (e.g. Wikimedia, Nasqueron, Wolfplex) - `group: "Operations",` - :information_source: The notification's target group (e.g. Tasacora, Operations) > WHAT? (optional) - `rawContent: { /* the full GitHub original payload */ },` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's source payload, data or message - `type: "commit",` (optional) - :information_source: The notification's type (e.g. "commits", "task") - (optional) `text: "dereckson committed Revoke unused SSH keys for dereckson",` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's text - `link: "https://github.com/nasqueron/operations/commit/95b800c2a259be0c4727c004f8ad918e8062b93b",` (optional) - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's URL, to be used as the main link for widgets / @var string
**Problem we want to solve** A script takes some hours to complete. It runs in background. The script caretaker wants to be notified when the script is done. **Plan** Provide a notification utility accessible in CLI, so it's as easy as: ```lang=sh python3 broadwayvenues && notifyme "Broadway venues successfully processed." ``` Then, the utility send a payload to the notification center: ```lang=json { source: "harmonia@ysul.nasqueron.org", message: "Broadway venues successfully processed." } ``` The notification center then could: * send a notification to a different queue on the broker than for public notifications, so it can be processed by another application * send a mail (but `notifyme` could directly do `echo '' | mail -t "Broadway venues successfully processed." user@domail.tld`) --- ## Command example ./your-awesome-command `--service` GitHub `--project` Nasqueron `--group` Operations `--type` commit `--text` "dereckson committed ..." `--link` [https://...](https://... "") ## More information > From who? - `service: "GitHub",` - :information_source: The notification's source service (e.g. GitHub, Phabricator, Jenkins) > For whom? - `project: "Nasqueron",` - :information_source: The notification's target project (e.g. Wikimedia, Nasqueron, Wolfplex) - `group: "Operations",` - :information_source: The notification's target group (e.g. Tasacora, Operations) > WHAT? (optional) - `rawContent: { /* the full GitHub original payload */ },` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's source payload, data or message - `type: "commit",` - :information_source: The notification's type (e.g. "commits", "task") - `text: "dereckson committed Revoke unused SSH keys for dereckson",` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's text - `link: "https://github.com/nasqueron/operations/commit/95b800c2a259be0c4727c004f8ad918e8062b93b",` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's URL, to be used as the main link for widgets / @var string
**Problem we want to solve** A script takes some hours to complete. It runs in background. The script caretaker wants to be notified when the script is done. **Plan** Provide a notification utility accessible in CLI, so it's as easy as: ```lang=sh python3 broadwayvenues && notifyme "Broadway venues successfully processed." ``` Then, the utility send a payload to the notification center: ```lang=json { source: "harmonia@ysul.nasqueron.org", message: "Broadway venues successfully processed." } ``` The notification center then could: * send a notification to a different queue on the broker than for public notifications, so it can be processed by another application * send a mail (but `notifyme` could directly do `echo '' | mail -t "Broadway venues successfully processed." user@domail.tld`) --- ## Command example ./your-awesome-command `--service` GitHub `--project` Nasqueron `--group` Operations `--type` commit `--text` "dereckson committed ..." `--link` [https://...](https://... "") ## More information > From who? - `service: "GitHub",` - :information_source: The notification's source service (e.g. GitHub, Phabricator, Jenkins) > For whom? - `project: "Nasqueron",` - :information_source: The notification's target project (e.g. Wikimedia, Nasqueron, Wolfplex) - `group: "Operations",` - :information_source: The notification's target group (e.g. Tasacora, Operations) > WHAT? (optional) - `rawContent: { /* the full GitHub original payload */ },` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's source payload, data or message - `type: "commit",`
(optional)
- :information_source: The notification's type (e.g. "commits", "task") -
(optional)
`text: "dereckson committed Revoke unused SSH keys for dereckson",` - :rotating_light: Default value: `""` (empty string) - :information_source: The notification's text - `link: "https://github.com/nasqueron/operations/commit/95b800c2a259be0c4727c004f8ad918e8062b93b",`
(optional)
- :rotating_light: Default value: `""` (empty string) - :information_source: The notification's URL, to be used as the main link for widgets / @var string
Continue