Skip to content

Commit

Permalink
PI-1513 Disable event publishers in read-only mode
Browse files Browse the repository at this point in the history
This prevents endless polling of the standby database, as we cannot delete from the offender_delta or domain_event tables
  • Loading branch information
marcus-bcl committed Oct 28, 2023
1 parent ceb6d26 commit 5903398
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/readonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,10 @@ jobs:
'.spec.template.spec.containers[0].env |= map(if .name == $name then .valueFrom.secretKeyRef.key = $value else . end)' \
| kubectl apply -f -
done
- name: Stop/start event publishers
env:
replicas: ${{ inputs.action == 'enable' && '0' || '1' }}
run: |
kubectl scale deploy domain-events-and-delius --replicas "$replicas"
kubectl scale deploy offender-events-and-delius --replicas "$replicas"

0 comments on commit 5903398

Please sign in to comment.