Handle backlog of expired trials picked up by ExpireOrderCronJob
Problem
As pointed out here, we seem to have a steadily growing backlog of expired trial orders that are picked-up daily by the expiration job (aka ExpireOrderCronJob
) only to be skipped because the linked namespaces already have more relevant orders (i.e. a full subscription).
With time, the backlog of such orders tends to keep growing as they're never really de-provisioned. More details can be found here.
Proposal
Change logic to de-provision those orders without triggering a sync
Result
Reduced backlog of expired trials.