Project-OMOTES / orchestrator

GNU General Public License v3.0
0 stars 0 forks source link

Implement job timeout at orchestrator #4

Closed lfse-slafleur closed 3 months ago

lfse-slafleur commented 8 months ago

Orchestrator should start counting the moment the celery task starts executing. (Listen to omotes_task_events on Celery side).

If celery task isn't done at the end of the timeout, cancel the task and (if possible) wait until the task has confirmed to have stopped.

Forward the cancellation to the SDK as a TIMEOUT job status update (may need to extend omotes-sdk-protocol).

lfse-slafleur commented 3 months ago

Duplicate of #39