-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Question: How to poll job status? #334
Comments
in php-resque seems there is implemented own status handler, that is stored under redis key: so, this should be created as own plugin for node-resque that updates |
this thread suggests to do is it intended that each job handle their status themselves in some external storage? |
Altho, if writing plugin, I would rather attach it to worker via the |
Seems ruby also has status object? EDIT: it's extra plugin for ruby world: |
either way, all the integration points are sync methods, but |
There is not any tracking for job status implemented in What is available at the moment is the |
here's plugin I created to work with php-resque status class: it's not perfect, but does something a like |
@evantahler I read the resque-status plugin description now. I don't like that it requires jobs to change. I'd implement the status details in worker side, so the jobs remain unmodified. This allows flexibility to enable disable the status integration without modifying the jobs. |
Conveyor MQ has a feature for being notified once a task is compelte/finished by using const task = await manager.enqueueTask({ data: { x: 1, y: 2 } });
await manager.onTaskComplete(task.id);
console.log('Task has completed!'); |
Nice reference @jasrusable! We were talking about this a little above in #334 (comment). I think the way to get this working in
const jobId = await queue.enqueue("math", "add", [1, 2]);
The const status = await queue.status(jobId); // status = ['complete', 'in-progress', 'enqueued', 'error'] Does anyone on this thread want to tackle this feature? We can discuss on the Actionhero slack channel @ http://slack.actionherojs.com/ |
Also of note, there will be some interesting side effects to the |
So, the typical use case is to offload heavy job to resque.
So in my application, I need to poll until the job is finished, current documentation does not provide an example.
The text was updated successfully, but these errors were encountered: