ЕСОЗ - публічна документація

RC_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

  1. Find device dispenses in status IN_PROGRESS where inserted_at + device_dispense_ttl (config param) in the past

  2. Update device dispense status to UNKNOWN

  3. Send StatusChangeEvent to Event Manager

ЕСОЗ - публічна документація