Skip to content

Commit 72ac544

Browse files
authored
Merge pull request #5419 from raft-tech/5413-prod-celery-mem-bump
Prod Celery App Memory Bump
2 parents 5d7a269 + d3740c2 commit 72ac544

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

scripts/deploy-backend.sh

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,27 @@ update_backend()
141141
exit
142142
fi
143143

144+
args=("$APP")
145+
args+=("--no-route")
146+
args+=("-f")
147+
args+=("$MANIFEST")
148+
args+=("-t")
149+
args+=("180")
150+
151+
if [[ "$APP" = "$CGAPPNAME_CELERY" && "$CF_SPACE" = "tanf-prod" ]]; then
152+
args+=("-m")
153+
args+=("2G")
154+
fi
155+
144156
if [ "$STRATEGY" = "rolling" ] ; then
145157
set_cf_envs "$APP"
146158
# Do a zero downtime deploy. This requires enough memory for
147159
# two apps to exist in the org/space at one time.
148-
cf push "$APP" --no-route -f "$MANIFEST" -t 180 --strategy rolling || exit 1
160+
args+=("--strategy")
161+
args+=("rolling")
162+
cf push "${args[@]}" || exit 1
149163
else
150-
cf push "$APP" --no-route -f "$MANIFEST" -t 180
164+
cf push "${args[@]}"
151165

152166
# set up JWT key if needed
153167
if cf e "$APP" | grep -q JWT_KEY ; then
@@ -274,7 +288,7 @@ if [[ $DEPLOY_STRATEGY == 'rebuild' ]]; then
274288
cf delete "$CGAPPNAME_BACKEND" -r -f
275289
cf delete "$CGAPPNAME_CELERY" -r -f
276290
fi
277-
291+
278292
add_service_bindings
279293

280294
if [[ $DEPLOY_STRATEGY == 'rebuild' ]]; then

0 commit comments

Comments
 (0)