Subscribing to Messages from Running Jobs following Disconnection
If a client gets disconnected, it is possible to subscribe to get messages for jobs that were submitted with a previous connection id.
If the job identified by the
computeJobId is finished, you will only receive this message. You can fetch the run log for the job using the
runLogUrl defined on the message.
If a job identified by the
computeJobId is still running, the messages received depend on whether the original job submission requested
run log messages or
solver callbacks:
- If the original job submission requested run log messages, Insight 5 will send one or more RUNLOG_UPDATED messages for all run log lines that have been generated whilst the client was disconnected. The messages will begin after the lastRunLogLine sent on the SUBSCRIBE message for that job. It will then continue to send RUNLOG_UPDATED messages as the job proceeds as usual.
- If the original job submission requested solver callbacks, Insight 5 will send any outstanding APP_MESSAGE raised whilst the client was disconnected, subject to the configured APP_MESSAGES timeout (if the client was disconnected too long, the job will have been terminated).