We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f4330 commit 9ccb575Copy full SHA for 9ccb575
infrastructure/deploy.py
@@ -240,6 +240,14 @@ def post_deploy_hook(terraform_output: dict):
240
except subprocess.CalledProcessError:
241
return 1
242
243
+ # Explicitly start the cron service to handle the case where the same API,
244
+ # which had its cron service stopped during the pre deploy hook, is still running here
245
+ try:
246
+ run_remote_command(api_ip_address, "sudo systemctl start cron")
247
+ except subprocess.CalledProcessError:
248
+ print("There was an error starting the cron service.")
249
+ return 1
250
+
251
return 0
252
253
0 commit comments