We have different schedules for different inputs for a single process. But if the items are loaded into the queue in the first schedule and bot got terminated then in the next schedule the already present records get executed in this schedule which leads to wrong result.
How can we handle this as only those records should get executed which is relevant to this schedule. The older records should get erased.
You have to design a flow that bot should remove all the new transactions which was created at the last schedule using delete queue and proceed with the relevant queue data.