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

Handling errors #54

Open
ACPK opened this issue Jan 5, 2017 · 4 comments
Open

Handling errors #54

ACPK opened this issue Jan 5, 2017 · 4 comments

Comments

@ACPK
Copy link

ACPK commented Jan 5, 2017

Should the documentation include ways to handle failed jobs so that SQS does not keep running them indefinitely?

@lovesmall
Copy link

Hi, I think this gem acts like a bridge between your app and aws SQS. So both failed jobs and pause jobs are handled at aws SQS.

Failed job can handle by SQS Dead Letter Queue..

Pause a job, I'm not sure how to do that. Doesn't seem can be paused.

@ACPK
Copy link
Author

ACPK commented Jan 10, 2017

@lovesmall - I added a "rescue Exception => exception" to stop the SQS job from rerunning, but moved over to https://github.com/phstc/shoryuken due to the error handling docs.

@youngbrioche
Copy link

As active-elastic-job is implemented as a rack middleware things like the Rails log and exception tracking aren't possible 😌

@ACPK
Copy link
Author

ACPK commented Apr 6, 2017

@MRReynolds - We're no longer using this gem, but rescuing the errors worked for my team.

http://stackoverflow.com/questions/11667710/how-to-rescue-custom-exceptions-coming-from-a-middleware-in-rails-3-2

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

3 participants