This will likely potentially require a change on the broker as well. Need to add some kind of endpoint that the webinterface can ask the brokers "Are you up?". If the broker is not up, display a different screen on webinterface to the user rather than letting them get to the /upload-form. Something like "down for maintenance" or something.
EDIT: Perhaps the endpoint on the broker could check the status of the "DEPLOY_IN_PROGRESS" env variable. If that variable is either true or if the request to the broker totally fails, we could use the same screen on webinterface.
This will likely potentially require a change on the broker as well. Need to add some kind of endpoint that the webinterface can ask the brokers "Are you up?". If the broker is not up, display a different screen on webinterface to the user rather than letting them get to the /upload-form. Something like "down for maintenance" or something.
EDIT: Perhaps the endpoint on the broker could check the status of the "DEPLOY_IN_PROGRESS" env variable. If that variable is either true or if the request to the broker totally fails, we could use the same screen on webinterface.