Cron fetch relative path error: Fetch API cannot load

In my schedule function I have this code to fetch another api endpoint to get all crons jobs that I want to run. But got this error in the worker log: "Fetch API cannot load: cron/list" (picture also attached)
No description
No description
2 Replies
Walshy
Walshy3w ago
cron/list isn't a valid url, are you trying to fetch your own worker? if so, best to just call the function
Varich
VarichOP5d ago
Yes, I am trying to call my won wokrer. The problem is that I am not sure how to use query from prisma. or create this context object to to query form
Want results from more Discord servers?
Add your server