Re: [sidekiq] Process status
- From:
- Jesse Cooke
- Date:
- 2012-09-05 @ 23:10
On Tue, Sep 4, 2012 at 10:16 AM, André Rodrigues Pereira <
andrerpbts@gmail.com> wrote:
> Well,
>
> I'm saying about get the status via code. For example, I have some large
> and long-term generation reports, that I'll move to Sidekiq. So, it would
> be nice if I can make a progress bar (checking time-by-time during the
> process) to show it to the user, and when it ends, show up the report...
>
I don't know if that's possible with what we have implemented currently. I
suppose if you had a group of jobs you could use a feature I've been
working on (`Sidekiq.size`) to check the size/backlog of specific queues.
As for per-job, I'm not sure how you would know the percentage completed.
You could check for done/not done based on a job ID.
>
> Atenciosamente,
> André Rodrigues Pereira
>
>
Re: [sidekiq] Process status
- From:
- André Rodrigues Pereira
- Date:
- 2012-09-05 @ 23:45
Checking via code if the process is done or not will be enough for this
moment... Do you have some example or link to documentation?
Thank you...
Atenciosamente,
André Rodrigues Pereira
Re: [sidekiq] Process status
- From:
- Mike Perham
- Date:
- 2012-09-05 @ 23:52
We don't have any support for progress at the moment but this is
something I'm considering for future versions. Suggestions for
features and APIs are always welcome. How would you like it to work?
On Wed, Sep 5, 2012 at 4:45 PM, André Rodrigues Pereira
<andrerpbts@gmail.com> wrote:
> Checking via code if the process is done or not will be enough for this
> moment... Do you have some example or link to documentation?
>
Re: [sidekiq] Process status
- From:
- André Rodrigues Pereira
- Date:
- 2012-09-06 @ 00:15
I don't know how to do it right now, since I'm new in Sidekiq yet, so I
just don't have many idea about what can be done. But, I think there will
be necessary (which the developer's code to calculate it), a way to look
into the perform method to get this info, or, export some data to an
instance variable, and get the information in some another method...