0

I am running WordPress sites using Marathon.

First I hit the Marathon POST API to create app, then I hit the Marathon PUT API with the environment variables (database-related).

Marathon takes some time to start the app (until that time, it is restarting because of a database error).

How can I know when the Marathon App is ready? Does Marathon have an API hook indicating when the app is successfully started?

Michael Currie
  • 13,721
  • 9
  • 42
  • 58
manish
  • 966
  • 2
  • 11
  • 35

1 Answers1

0

you can get the status of all running apps the using /v2/apps/ endpoint. This includes information about the running/staged tasks.

"tasksRunning": 2,
"tasksHealthy": 2,
"tasksUnhealthy": 0,
"tasksStaged": 0,

Another alternative is to check the /v2/deployments endpoint until all deployments are finished.

Otherwise it is easy to see in the webinterface, but that probably doesn't help you :-).

js84
  • 3,676
  • 2
  • 19
  • 23