PHP-Resque failed jobs list

user3273860

I have successfully integrated PHP RESQUE in my Ubuntu 14.

How can I get list of failed jobs in PHP to process them? I tried searching on web but could not find specific answer for PHP.

Please help. Thanks in advance.

LuizPoleto

You have two options: one is using the Resque-web UI: https://github.com/resque/resque-web if you want to install it from scratch or, better yet, there is a Docker container that makes it easy to get it up and running: https://hub.docker.com/r/ennexa/resque-web/~/dockerfile/

Resque-web has a tab to see the failed jobs and the option to reprocess them.

Programmatically, I don't think there is a built-in method that would allow that so I guess you would have to be creative here. For example, from resque-php Github page: You have the ability to retrieve a token identifying a job when you create it:

$token = Resque::enqueue('default', 'My_Job', $args, true);

With that information, you can then retrieve the job status:

$status = new Resque_Job_Status($token);
echo $status->get(); // Outputs the status

You will want to check for this:

Resque_Job_Status::STATUS_FAILED

This also might give you some ideas: https://github.com/chrisboulton/php-resque/issues/324

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Background jobs with Resque on Heroku

From Dev

Fetch Resque jobs scheduled with resque-scheduler

From Dev

What's the difference between resque:failed and resque:stat:failed keys?

From Dev

Resque jobs, how to stop running job

From Dev

ActiveJob with Resque: enqueuing jobs with uninteded arguments

From Dev

Resque jobs, how to stop running job

From Dev

Rails and Resque - How to ignore jobs if they are too old

From Dev

Debugging Resque Jobs With RubyMine without Rails

From Dev

PHP Resque Worker not working?

From Dev

How to find out if a set of Resque jobs have finished?

From Dev

How to find associated Resque jobs for an ActiveRecord model object?

From Dev

Skipping failed map jobs

From Dev

Laravel Queue Failed Jobs

From Dev

PHP-Resque won't run perform()

From Dev

Queuing data to redis with php-resque is slow

From Dev

How to restart failed jobs in Sidekiq?

From Dev

Getting notified of failed cron jobs

From Dev

Getting notified of failed cron jobs

From Dev

resque-web: NoMethodError at /failed undefined method `to_yaml'

From Dev

Submitting list of jobs to slurm

From Dev

SGE hold_jid and catching failed jobs

From Dev

Hangfire failed jobs logs: how to sort them?

From Dev

How to get jobid from inside job in php-resque?

From Dev

Failed to fill 2nd drop down list with getJSON and php

From Dev

Php Web Page Failed to display List of Products With Wamp Server

From Dev

Return to a particular job in the jobs list

From Dev

Get list of background jobs in IQuartzScheduleJobManager

From Dev

Creating multiple cron jobs with PHP

From Dev

Cannot grep jobs list when jobs called in a function

Related Related

HotTag

Archive