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

Possibility to receive status or progress of running task? #90

Open
mrvnklm opened this issue Jul 21, 2018 · 2 comments
Open

Possibility to receive status or progress of running task? #90

mrvnklm opened this issue Jul 21, 2018 · 2 comments

Comments

@mrvnklm
Copy link

mrvnklm commented Jul 21, 2018

Hey there,
I was wondering if its possible to set some kind of progress in the task, which can be read from outside using the task id?
Extending the entity to add a entries and processed field seems simple but not sure if this would be the best way of doing this.

I also had a look at other bundles and it seems like its not common to do so, but why?

@mmucklo
Copy link
Owner

mmucklo commented Jul 26, 2019

@mrvnklm Just reviewing older issues. Not sure if you're still using the bundle right now, but this is a potential enhancement. The job has a status field such as 'success', 'exception, 'new', 'running', 'failure'.

It wouldn't be terribly hard to have a Progress field - like a counter, that one could update with the progress of the job, but it would have to be done by the job itself as the worker wouldn't have a good way to measure progress, unless it keeps statistics on the type of jobs that it sees and then tries to take a guess based on the average running time of each job. Even then as things are not done in a multi-threaded manner right now, this would involve a separate monitoring task of sorts.

I'm not sure what you had in mind in terms of "entries" and "processed" fields?

@mrvnklm
Copy link
Author

mrvnklm commented Aug 11, 2019

@mmucklo not using the bundle anymore, because I switched to Laravel.
I thought of a design like https://github.com/imTigger/laravel-job-status for anyone whos further looking, making am PR for that bundle might not be hard work, when you follow what imTigger did

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

No branches or pull requests

2 participants