You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in serverless environments, you have to periodically trigger payload to check for new tasks. So you typically have a cronjob that runs regularly call /api/payload-jobs/run (or run a command in something like a google cloud run job)
however that means jobs aren't run as soon as possible, but depending on your cron-interval.
you could mitigate this by calling /api/payload-jobs/run from the instance/request that schedules the job.
so my question is, is there a hook to do this? or is there a mechanism for that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
in serverless environments, you have to periodically trigger payload to check for new tasks. So you typically have a cronjob that runs regularly call /api/payload-jobs/run (or run a command in something like a google cloud run job)
however that means jobs aren't run as soon as possible, but depending on your cron-interval.
you could mitigate this by calling /api/payload-jobs/run from the instance/request that schedules the job.
so my question is, is there a hook to do this? or is there a mechanism for that?
Beta Was this translation helpful? Give feedback.
All reactions