WP cron worker

Hi, I’m trying to set up a worker to offload cron jobs from the core WP but I can’t seem to get it to work. The only thing that seems to be working is the trigger but I see no requests data in the dashboard. I’ve tried with and without namespace but there’s no difference as I always get a 522 error. I’m no JS dev and just followed instructions from a tutorial that is supposed to work.

Your kind input to guide me in the right direction will be much appreciated.

Thanks, Ales

In handleScheduled you must return the response from fetch:

return await fetch(your URL)


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.