Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Bug: more error fixing attempts. - #392

Merged
nellshamrell merged 3 commits into
OperationCode:masterfrom
apex-omontgomery:stopjobs
Sep 4, 2018
Merged

nellshamrell merged 3 commits into
OperationCode:masterfrom
apex-omontgomery:stopjobs

Conversation

@apex-omontgomery

Copy link
Copy Markdown
Contributor

Still getting sentry raven errors.

  1. I think this is due to max retries not being set.
    The previous PR might have stopped new jobs, but I am unable to verify that. Since the previous PR didn't modify the jobs, but only the methods to add items to the queue the jobs were still around and retrying:
    jobstr: {"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"SendEmailToLeadersJob","queue":"default","args":[{"job_class":"SendEmailToLeadersJob","job_id":"e83f8353-6bcb-4ead-b199-22dbafc37d53","queue_name":"default","priority":null,"arguments":[5634],"locale":"en"}],"retry":true,"jid":"ba5c804c14e5326cd71282a2","created_at":1534575086.2258425,"enqueued_at":1536011868.7118113,"error_message":"FATAL: database \"opcode-postgres\" does not exist\n","error_class":"ActiveRecord::NoDatabaseError","failed_at":1534575086.2729545,"retry_count":23,"retried_at":1535731542.3347352}

The above job was added to queue on 8-18-2018 and has been retried 23 times.

ex: https://repl.it/repls/HandsomeFlawedApi

This PR adds a maximum retry count of 5. Using information found: https://repl.it/repls/HandsomeFlawedApi

I don't know how to test this config actually works, and I'd like to be able to see how many jobs are in a retry queue.

@nellshamrell
nellshamrell merged commit fbd8800 into OperationCode:master Sep 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants