slub/ocrd_manager

add alternative callback mechanism besides ActiveMQ

Closed this issue · 2 comments

To run asynchronously, we currently rely on ActiveMQ exclusively. It is well integrated with Kitodo.Production, but may not be first choice for other use cases (like DFG Viewer / OCR-on-demand). So perhaps allowing to pass a simple HTTP URL to be POSTed on termination to would be most versatile?

(This could apply to both the SSH interface and the additional HTTP interface in #63.)

We also need this to get asynchronous behaviour with process_mets at all. (Currently, unless both ACTIVEMQ and TASK_ID are set, the scripts will run synchronously.)

Fixed in #66.