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

Re-run pending tasks #24

Closed
geofffranks opened this issue Jan 4, 2016 · 1 comment
Closed

Re-run pending tasks #24

geofffranks opened this issue Jan 4, 2016 · 1 comment
Assignees

Comments

@geofffranks
Copy link
Contributor

Currently Shield does not do anything with tasks that never come out of the pending state. To address this:

Add a function to ReschedulePendingTasks:

  • Find all tasks in the database listed as pending.
  • Cross-reference those tasks with the tasks in the scheduling queue of the supervisor. If there is a database-found task which is not in the scheduling queue, add it to the queue

Call this function at startup

@jhunt jhunt self-assigned this Jan 15, 2016
@jhunt jhunt changed the title Re-run pending jobs Re-run pending tasks Jan 15, 2016
@jhunt
Copy link
Contributor

jhunt commented Jan 15, 2016

This requires changes to the schema (hello, v3!) to track more important information about Task objects (like, what they are supposed to be doing).

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

No branches or pull requests

2 participants