contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.74k stars 229 forks source link

Scheduled job processed immediately #449

Closed skanilabsinc closed 8 months ago

skanilabsinc commented 1 year ago

Which Faktory package and version? Faktory 1.7.0 (free version)

Which Faktory worker package and version? faktory-worker 4.5.1

Please include any relevant worker configuration. When I scheduled the job it is processed immediately, seems like it is ignoring "at"

here is code

     const faktoryTime = "2024-12-20T15:30:17.111222333Z";
       const date = new Date(faktoryTime);
        const jobData = {
            keyId: keyId, 
            at: date.toISOString(),// Store the scheduled time as a string
            retry: 3,
          };
        const data = await client.job("Sql", jobData).push();

Please include any relevant error messages or stack traces None so far.

Are you using an old version? No

Have you checked the changelogs to see if your issue has been fixed in a later version? We seem to be on the latest version.

Issue Description:

https://github.com/contribsys/faktory/blob/master/Changes.md https://github.com/contribsys/faktory/blob/master/Pro-Changes.md https://github.com/contribsys/faktory/blob/master/Ent-Changes.md

jbielick commented 1 year ago

Not submitting job payload correctly.

https://github.com/jbielick/faktory_worker_node/issues/402