Project-OMOTES / orchestrator

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

Save any received jobs in a postgresql database #6

Closed lfse-slafleur closed 7 months ago

lfse-slafleur commented 8 months ago

Please take care of ordering: Any handler in the orchestrator that processes an AMQP message will acknowledge that message the moment the function returns. The handler should only succeed and acknowledge the message once any postgresql transactions have completed. If this invariant is broken, we will lose work/state in edge-case situations.

lfse-slafleur commented 8 months ago

Unsure if necessary at the moment. Currently all work for orchestrator is kept in durable queues and no info needs to be saved. Perhaps we do not need postgresql for this purpose.

lfse-slafleur commented 7 months ago

Necessary for cancel and timeout functionalities.