librelist archives

« back to archive

Process status

Process status

From:
André Rodrigues Pereira
Date:
2012-09-04 @ 14:43
Hi,

I'm learning about Sidekiq now and after read a bit of the documentation I
didn't found about check the message processing status. There's a way to
catch if the job is running or done, and if possible a place to implement a
calc rule in order to get percentuals, sizes, etc..?

Re: [sidekiq] Process status

From:
Jesse Cooke
Date:
2012-09-04 @ 17:05
On Tue, Sep 4, 2012 at 7:43 AM, André Rodrigues Pereira <
andrerpbts@gmail.com> wrote:

> Hi,
>
> I'm learning about Sidekiq now and after read a bit of the documentation I
> didn't found about check the message processing status. There's a way to
> catch if the job is running or done, and if possible a place to implement a
> calc rule in order to get percentuals, sizes, etc..?
>
Some stats are being worked on in the stats branch right now. I'm
implementing parts of Resque.info so we can know the counts of processed,
failed and pending/backlog jobs. Is there something in the web UI we're
missing that would be helpful info?

Re: [sidekiq] Process status

From:
André Rodrigues Pereira
Date:
2012-09-04 @ 17:16
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...

Atenciosamente,
André Rodrigues Pereira

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...

Re: [sidekiq] Process status

From:
Илья Василевский
Date:
2013-03-20 @ 13:38
You might want to take a look at this gem:

https://github.com/cryo28/sidekiq_status

It allows you to update job progress from within the job itself. From
the outside, you can query job status and progress.