ЕСОЗ - публічна документація
RС_Device dispense auto-expiration
Purpose
Device dispense auto-expiration process starts periodically based on the value of configuration parameter DEVICE_DISPENSES_AUTOEXPIRATION_SCHEDULE
. It cancels all device dispenses in status IN_PROGRESS that have passed expiration period
Service logic
Find device dispenses in status IN_PROGRESS where inserted_at +
device_dispense_ttl
(config param) in the pastUpdate device dispense status to UNKNOWN
Send
StatusChangeEvent
to Event Manager
ЕСОЗ - публічна документація