Skip to content

Commit

Permalink
Add --quiet flag to NCSO alerts command
Browse files Browse the repository at this point in the history
Something about the way fabric/ebmbot work means that stderr gets
reported to Slack, interspersed with stdout. This flag disables the
stderr logging to stop the command creating a lot of noise in a Slack.

If there's a simple way to get it just report stdout that would also
solve the problem, but I couldn't immediately see one.

See also:
 * ebmdatalab/openprescribing#4772
  • Loading branch information
evansd committed Apr 30, 2024
1 parent f3c32fc commit 562beb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebmbot/job_configs.py
Expand Up @@ -104,7 +104,7 @@
"report_stdout": True,
},
"ncso_send_alerts": {
"run_args_template": "fab --hide=running,stdout,status call_management_command:send_ncso_concessions_alerts,production",
"run_args_template": "fab --hide=running,stdout,status call_management_command:send_ncso_concessions_alerts,production,--quiet",
"report_stdout": True,
},
"import_measure_definition": {
Expand Down

0 comments on commit 562beb9

Please sign in to comment.