Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Understanding `queue.waitUntil` Functionality and Execution Requirements

discord user avatar
alessiogr
last year
4

using waitUntil saves a Date to the job document that's in the future. Every time the job runner looks through jobs to run, it will skip jobs where the current date <= date saved on the job document

  • default discord avatar
    wkd1079last year

    right, but what's triggering the job runner to run?



    if I schedule a job to run with "waitUntil" two weeks from now, how would the job runner know to run then without getting nudged by a cron or some other polling mechanism?

  • discord user avatar
    alessiogr
    last year

    it won't - something has to attempt and run it. You'd have to run a cron regularly

  • default discord avatar
    wkd1079last year

    ahh, ok. thanks for clarifying

  • default discord avatar
    sunilnunelast year

    Is there any UI for Jobs in Payload Admin?

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.