Job flow 1a ยท task:billing-cycle โ€” checks before charging

Job flow 1a ยท task:billing-cycle โ€” checks before charging A workflow diagram generated by Archify. 01 / Queued by EX / Skips 03 / billingCycleWorker 04 / Writes, emails, next jobs Activation, renewal ยท card saved, reconciliation ยท Queued by Activation, renewal card saved, reconciliation Skip: stale job ยท โ‰ฅ1 needs ACTIVE/PAST_DUE ยท Skips Skip: stale job โ‰ฅ1 needs ACTIVE/PAST_DUE Re-delay job ยท until currentPeriodEnd ยท Skips Re-delay job until currentPeriodEnd Job fires ยท billing-cycle-<sub>-<n> ยท billingCycleWorker Job fires billing-cycle-<sub>-<n> Status + cycle valid? ยท 0: UNPAID/PAYMENT_FAILED ยท billingCycleWorker Status + cycle valid? 0: UNPAID/PAYMENT_FAILED Period ended? ยท ACTIVE, cycle โ‰ฅ 1 only ยท billingCycleWorker Period ended? ACTIVE, cycle โ‰ฅ 1 only Cancel flag set? ยท cancelAtPeriodEnd ยท billingCycleWorker Cancel flag set? cancelAtPeriodEnd Downgrade scheduled? ยท downgradePlanId set ยท billingCycleWorker Downgrade scheduled? downgradePlanId set Charge step ยท continues in flow 1b ยท billingCycleWorker Charge step continues in flow 1b CANCELLED + grace ยท warnings, final job, email ยท Writes, emails, next jobs CANCELLED + grace warnings, final job, email New plan applied ยท price, discount, agents ยท Writes, emails, next jobs New plan applied price, discount, agents add job no yes not yet yes yes: stop no yes then Legend User UI Agent logic Policy Tool action Context / trace