Skip to content

Commit 8084d6b

Browse files
authored
fix: wait 30s before running migration (#786)
1 parent ab4e35d commit 8084d6b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

services/impulse_svc/fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ primary_region = "ams"
77
SERVICE = "impulse-svc"
88

99
[deploy]
10-
release_command = "./run-migrations.sh"
10+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1111

1212
[processes]
1313
web = "python manage.py runserver 0.0.0.0:8000"

services/task-svc/fly.production.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_region = "ams"
1212

1313
[deploy]
1414
strategy = "bluegreen"
15-
release_command = "./run-migrations.sh"
15+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1616

1717
[checks]
1818
[checks.dapr_sidecar]

services/task-svc/fly.staging.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_region = "ams"
1212

1313
[deploy]
1414
strategy = "bluegreen"
15-
release_command = "./run-migrations.sh"
15+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1616

1717
[checks]
1818
[checks.dapr_sidecar]

services/tasks-svc/fly.staging.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_region = "ams"
1212

1313
[deploy]
1414
strategy = "bluegreen"
15-
release_command = "./run-migrations.sh"
15+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1616

1717
[checks]
1818
[checks.dapr_sidecar]

services/user-svc/fly.production.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_region = "ams"
1212

1313
[deploy]
1414
strategy = "bluegreen"
15-
release_command = "./run-migrations.sh"
15+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1616

1717
[checks]
1818
[checks.dapr_sidecar]

services/user-svc/fly.staging.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ primary_region = "ams"
1212

1313
[deploy]
1414
strategy = "bluegreen"
15-
release_command = "./run-migrations.sh"
15+
release_command = "sh -c 'sleep 30s && ./run-migrations.sh'" # fly (hopefully) is done with its networking
1616

1717
[checks]
1818
[checks.dapr_sidecar]

0 commit comments

Comments
 (0)