File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,26 @@ steps:
8181 workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)"
8282 retryCountOnTaskFailure: 2
8383
84+ - ${{ if eq(parameters.subscribe_to_mns, true) }} :
85+ - bash : |
86+ export AWS_PROFILE=apim-dev
87+ echo "Subscribing SQS to MNS for notifications."
88+ pyenv install -s 3.11.11
89+ pyenv local 3.11.11
90+ echo "Setting up poetry environment..."
91+ poetry env use 3.11
92+ poetry install --no-root
93+
94+ echo "Setting PYTHONPATH..."
95+ export PYTHONPATH=$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription
96+
97+ echo "Subscribing SQS to MNS for notifications..."
98+ poetry run python src/subscribe_mns.py
99+ displayName: "Run MNS Subscription"
100+ workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription"
101+ env:
102+ SQS_ARN: "$(ID_SYNC_QUEUE_ARN)"
103+
84104 - bash : |
85105 set -ex
86106
You can’t perform that action at this time.
0 commit comments