Adjust the order query to avoid orders that are already queued from being processed via Cron

Created on 23 July 2024, 9 months ago

Problem/Motivation

In 🐛 multiple recurring orders get created if cron is badly configured Needs work new boolean field was added to the recurring order type that is set to TRUE when the order is successfully processed via Cron and all remaining jobs are added to the queue.

In this issue, we want to further optimize the entity query and exclude already queued orders from being loaded and processed.

Please note that queued flag is not set retrospectively on existing orders and will only be set on the newly processed orders so the query condition must account for that.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇴Norway zaporylie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024