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

change job queue status from cli #1228

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

kaplanelad
Copy link
Contributor

@jondot
Copy link
Contributor

jondot commented Jan 31, 2025

Reading the conversation on #1039 I believe this has to add some kind of "selector". This is my logic:

  1. This kind of change status is probably relevant mostly or only in processing->queue which means it can be called requeue
  2. For the specific use case describe, the most ideal solution would be to encode some kind of versioning scheme. Why was a worker cut off? a redeploy? then, encode a software version. This means we can requeue all "old version" jobs. The selector is a version. The version can be software version, deploy version, etc. --- anything that can separate between "old workers which were cut off" and "new workers that are online now", because new workers will set other jobs to "processing" in real-time, which are unrelated to the jobs we're trying to requeue.
  3. Since (2) may be complicated, the best solution may be to requeue based on a time cut off (requeue anything that was updated to processed 1 hour before now, or X time before now)

@kaplanelad
Copy link
Contributor Author

Reading the conversation on #1039 I believe this has to add some kind of "selector". This is my logic:

  1. This kind of change status is probably relevant mostly or only in processing->queue which means it can be called requeue
  2. For the specific use case describe, the most ideal solution would be to encode some kind of versioning scheme. Why was a worker cut off? a redeploy? then, encode a software version. This means we can requeue all "old version" jobs. The selector is a version. The version can be software version, deploy version, etc. --- anything that can separate between "old workers which were cut off" and "new workers that are online now", because new workers will set other jobs to "processing" in real-time, which are unrelated to the jobs we're trying to requeue.
  3. Since (2) may be complicated, the best solution may be to requeue based on a time cut off (requeue anything that was updated to processed 1 hour before now, or X time before now)

changed

@kaplanelad kaplanelad linked an issue Feb 5, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Expose some identifier for Worker and a way to query its status
2 participants