SupplierDeliverySaga
Receives the suppliers' deliveries into stock once a day. Every morning at 06:00 UTC, the job reads the deliveries of the day before from SupplierDeliveries and sends a ReceiveStock to each delivered product's stock.
A job of one instance for the service (me.ahoo.wow.api.schedule.JobScope.SYSTEM, the default), enabled by the host at startup, in the default tenant: the shop's one warehouse.
A tick that coalesced missed slots (no node ran the job for a few days) reads each missed day too, so no delivery is left out.
The commands' ids come from the tick's execution, so handling the tick again, after a failure, sends the same requests, which each stock decides once.
Reading the feed blocks, so the job runs on a virtual thread.
Functions
Link copied to clipboard