Task: Every handler handles a message once 

Description 

A queue may deliver a message again, after a worker stopped before it confirmed the message or after one of its handlers failed. Every message published by a module carries an ID, and each of its handlers handles it once: on a repeated delivery only the handlers that have not handled it yet run. What was handled is kept for seven days in the table handled_message and then removed by a daily job. The operations guide explains the queues and the transport failed.

Impact 

The migration adds the table handled_message. No notification, mail or booking is repeated because a message was delivered twice.