Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longer schedule time (more than one hour from current date or next hour) not triggering #1560

Open
SantoshKumarRavi opened this issue Dec 1, 2023 · 0 comments

Comments

@SantoshKumarRavi
Copy link

SantoshKumarRavi commented Dec 1, 2023

const jobId = uuidv4();
      this.agenda.define(jobId, async (job: any) => {
        // Job processing completed
        job.remove();
      });
      await this.agenda.schedule("UTC DATE", jobId, { });

i am using mongoDB.
UTC DATE is in format of "2023-12-01T09:24:00.000+00:00"
and i have added event listener too for agenda.

if i schedule more than one hour from current time, job is not even started
if i schedule one minute and 10 minutes, it is triggering.

can u tell me what is the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant