Ben Sheldon [he/him]

Results 285 comments of Ben Sheldon [he/him]

Can you share the code at `test/controllers/user_controllers_test.rb:241`? The exception says `perform_enqueued_jobs` is being called on the queue adapter, which isn't correct (it should be called on the Test Case). Would...

Thanks! Can you tell me which line in the above code triggers `NoMethodError: undefined method 'perform_enqueued_jobs' for #

@amo13 ohh, the issue here is that you're using test helpers that rely upon the Active Job `TestAdapter` e.g. `assert_emails` calls `deliver_enqueued_emails` calls `perform_enqueued_jobs`. If you're doing "integration testing" using...

ah gotcha. The problem you're experiencing is that you're combining two different integration test strategies that aren't compatible. - Use the Active Job TestAdapter, and the job / email assertion...

I think the interaction between Active Job and the Backend when exceptions are raised through the backend is very _undefined_. - "discard" is an explicit action to be taken in...

@sairam hmmm. I believe that you're experiencing the Concurrency Control's normal behavior: it will retry-with-incremental-backoff, which can put stress on the database because it's fetching-and-locking-and-rescheduling _a lot_ if there are...

You can set up a log up with an error handler, but that will not capture exceptions caught by Active Job https://github.com/bensheldon/good_job#exceptions Active Job exceptions do go to the Rails...

> What I'm missing is a stack trace of the error. ActiveJob should be logging exceptions with backtraces. If you're not seeing that, you may need to adjust your log...

Yikes! That's not good! I have a couple of ideas for what could be causing the spike; it sounds a little similar to #809. When I see slow job-locking queries...

@remoteweb hmmm. It looks like there are some spikes in executions, I dunno if they line up with the resource usage that you're seeing: ![Screenshot 2023-01-30 at 11 30 28...