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

Delayed jobs #19

Open
SEAPUNK opened this issue Oct 4, 2016 · 0 comments
Open

Delayed jobs #19

SEAPUNK opened this issue Oct 4, 2016 · 0 comments

Comments

@SEAPUNK
Copy link
Owner

SEAPUNK commented Oct 4, 2016

semver-minor

Adds three fields to Job objects:

  • state: Job.PENDING
  • delayed_until: Date.getTime() that the job should run at
  • queued_at: Job time fields #20

Server tasks:

  • Loads PENDING jobs at startup
  • Sets timers for the jobs to move them out of PENDING, and into QUEUED

If an error occurs at this detached state, then loudly log error, and try again after 1s.

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

No branches or pull requests

1 participant