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

Event for failed jobs? #113

Open
epicwhale opened this issue Nov 14, 2014 · 3 comments
Open

Event for failed jobs? #113

epicwhale opened this issue Nov 14, 2014 · 3 comments

Comments

@epicwhale
Copy link
Contributor

Does this bundle provide a symfony2 dispatcher event or a mechanism where I can do something when a Job fails?

@ruudk
Copy link
Collaborator

ruudk commented Nov 14, 2014

Use a custom bootstrap that listens to Resque_Events (Resque_Event::listen)

@ruudk
Copy link
Collaborator

ruudk commented Nov 14, 2014

@epicwhale
Copy link
Contributor Author

@ruudk thanks for sharing.. two quick thoughts

  1. Can I access the symfony2 container here (in the custom bootstrap) by any chance? As I am using Ekino NewRelic Bundle and would like to access its services.
  2. It looks like you are using New Relic too.. your feedback on this on-going discussion with @danhunsaker would be insightful - New Relic transaction naming support for Jobs? chrisboulton/php-resque#224

bassrock added a commit to Klinche/BCCResqueBundle that referenced this issue Feb 14, 2015
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