Update resource_group process mode of jobs that set environment_state metric
Summary
All CI jobs that set the auto_deploy_environment_state
metric will run in a resource_group
. This will prevent them from executing at the same time.
The default process mode for a resource group is unordered
. We need to change it to oldest_first
, so that the CI jobs are executed in a first-in first-out pattern (FIFO).
Proposal
Call the API to set the process mode to oldest_first
in tasks/metrics/set_environment_state.rb#L19.