Managing Store-Specific Cron Jobs for Abandoned Cart Recovery

I need to create cron jobs that run a script to recover abandoned carts for multiple stores. Each store has a specific time when the script should run (e.g., Store A at 12 am, Store B at 2 am, etc.). How can I efficiently manage these store-specific cron jobs to ensure the script runs at the designated time for each store?
2 Replies
ljspoor94
ljspoor942mo ago
Use background actions and schedule them accordingly
Chocci_Milk
Chocci_Milk2mo ago
I think that this will require a scheduled global action that runs more frequently and 2 new fields on the shopifyShop model that tells you when to run the logic for the store and what interval to add to that data field (for customizability)

Did you find this page helpful?