Notices are triggered due to scheduling AS jobs too early #9434
Labels
focus: ops
General (non dev) operations bugs and enhancements, not matching any other focus area
type: bug
The issue is a confirmed bug.
Describe the bug
Sometimes we try to schedule ActionScheduler jobs via the WC_Payments_Action_Scheduler_Service::schedule_job() method before the ActionScheduler was properly initialized. This triggers a "doing it wrong" notice (see
ActionScheduler::is_initialized()
).To Reproduce
Most consistently, this can be reproduced by clearing the account cache:
Additional context
p1719838546986229-slack-C03KTTK2YMA
The text was updated successfully, but these errors were encountered: