I am creating a process for taking invoice which are added as attachment to emails, pushed through document understanding and then added to our financial system.
- I intend to have a dispatcher process which solely strips the attachments from the emails and queue a job for each individual attachment to a queue to be processed through document understanding.
- I intend to have a performer which processes the queue items from stage 1 (the attached document) through document understanding then queue a job to a performer to add the attachment to the account system.
- I intend to have a second performer to add the invoice to the accounts system.
Very simply:
- Dispatcher to separate attachments from emails.
- Performer to process attachments through document understanding.
- Performer to add invoice to accounts system.
My question is regarding the first performer used for document understanding. How does the queue deal with transactions when the action centre is invoked for an invoice with low confidence. Does the queue suspend the current transaction and start a new job for the next transaction in queue or simply suspend the queue until the action centre query is resolved?
