Skip to content

Commit

Permalink
Merge pull request #411 from ebmdatalab/op
Browse files Browse the repository at this point in the history
Remove op staging jobs, and add a new restart job
  • Loading branch information
rebkwok committed Jan 17, 2024
2 parents d1770e1 + f30f12c commit 659342f
Showing 1 changed file with 96 additions and 79 deletions.
175 changes: 96 additions & 79 deletions ebmbot/job_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@
"run_args_template": "fab deploy:production",
"report_success": False,
},
"deploy_staging": {
"run_args_template": "fab deploy:staging,branch={branch_name}"
"restart": {
"run_args_template": "fab restart:production",
"report_success": False,
},
"cache_clear": {
"run_args_template": "fab clear_cloudflare"
Expand Down Expand Up @@ -119,83 +120,99 @@
"report_stdout": True,
},
},
"slack": [{
"command": "deploy",
"help": "deploy to production after a 60s delay",
"action": "schedule_job",
"job_type": "deploy",
"delay_seconds": 60,
}, {
"command": "deploy now",
"help": "deploy to production immediately",
"action": "schedule_job",
"job_type": "deploy",
}, {
"command": "deploy cancel",
"help": "cancel any pending production deploy",
"action": "cancel_job",
"job_type": "deploy",
}, {
"command": "deploy suppress from [start_at] to [end_at]",
"help": "suppress production deploys between these times today (times in UTC as 'HH:MM')",
"action": "schedule_suppression",
"job_type": "deploy",
}, {
"command": "deploy suppress cancel",
"help": "cancel suppression of production deploys",
"action": "cancel_suppression",
"job_type": "deploy",
}, {
"command": "deploy staging [branch_name]",
"help": "deploy branch [branch_name] to staging immediately",
"action": "schedule_job",
"job_type": "deploy_staging",
}, {
"command": "cache clear",
"help": "clear Cloudflare cache",
"action": "schedule_job",
"job_type": "cache_clear",
}, {
"command": "ncso import",
"help": "import NCSO concessions",
"action": "schedule_job",
"job_type": "ncso_import",
}, {
"command": "ncso report",
"help": "show NCSO concession summary",
"action": "schedule_job",
"job_type": "ncso_report",
}, {
"command": "ncso reconcile concession [concession_id] against vmpp [vmpp_id]",
"help": "show NCSO concession summary",
"action": "schedule_job",
"job_type": "ncso_reconcile",
}, {
"command": "ncso send alerts",
"help": "send alerts for NCSO concessions",
"action": "schedule_job",
"job_type": "ncso_send_alerts",
}, {
"command": "measures import [measure_id]",
"help": "import measure definition",
"action": "schedule_job",
"job_type": "import_measure_definition",
}, {
"command": "measures recalculate [measure_id]",
"help": "recalculate measure values",
"action": "schedule_job",
"job_type": "recalculate_measure",
}, {
"command": "measures preview [github_measure_url]",
"help": "import hidden preview version of measure direct from Github",
"action": "schedule_job",
"job_type": "preview_measure",
}, {
"command": "measures delete_preview [measure_id]",
"help": "delete preview measure from site",
"action": "schedule_job",
"job_type": "delete_preview",
}],
"slack": [
{
"command": "deploy",
"help": "deploy to production after a 60s delay",
"action": "schedule_job",
"job_type": "deploy",
"delay_seconds": 60,
},
{
"command": "deploy now",
"help": "deploy to production immediately",
"action": "schedule_job",
"job_type": "deploy",
},
{
"command": "deploy cancel",
"help": "cancel any pending production deploy",
"action": "cancel_job",
"job_type": "deploy",
},
{
"command": "deploy suppress from [start_at] to [end_at]",
"help": "suppress production deploys between these times today (times in UTC as 'HH:MM')",
"action": "schedule_suppression",
"job_type": "deploy",
},
{
"command": "deploy suppress cancel",
"help": "cancel suppression of production deploys",
"action": "cancel_suppression",
"job_type": "deploy",
},
{
"command": "restart",
"help": "restart production",
"action": "schedule_job",
"job_type": "restart",
},
{
"command": "cache clear",
"help": "clear Cloudflare cache",
"action": "schedule_job",
"job_type": "cache_clear",
},
{
"command": "ncso import",
"help": "import NCSO concessions",
"action": "schedule_job",
"job_type": "ncso_import",
},
{
"command": "ncso report",
"help": "show NCSO concession summary",
"action": "schedule_job",
"job_type": "ncso_report",
},
{
"command": "ncso reconcile concession [concession_id] against vmpp [vmpp_id]",
"help": "show NCSO concession summary",
"action": "schedule_job",
"job_type": "ncso_reconcile",
},
{
"command": "ncso send alerts",
"help": "send alerts for NCSO concessions",
"action": "schedule_job",
"job_type": "ncso_send_alerts",
},
{
"command": "measures import [measure_id]",
"help": "import measure definition",
"action": "schedule_job",
"job_type": "import_measure_definition",
},
{
"command": "measures recalculate [measure_id]",
"help": "recalculate measure values",
"action": "schedule_job",
"job_type": "recalculate_measure",
},
{
"command": "measures preview [github_measure_url]",
"help": "import hidden preview version of measure direct from Github",
"action": "schedule_job",
"job_type": "preview_measure",
},
{
"command": "measures delete_preview [measure_id]",
"help": "delete preview measure from site",
"action": "schedule_job",
"job_type": "delete_preview",
}
],
},
"outputchecking": {
"description": "Output Checking tools",
Expand Down

0 comments on commit 659342f

Please sign in to comment.