Rosa Gutierrez
Rosa Gutierrez
Oops, so sorry @byroot, I completely missed this mention back in September! 😳🤦🏻♀️ Yes, it'd be really nice to upstream this. Happy to propose something and then make Solid Queue...
Without logs or any other information (e.g. was the job waiting in the queue to be picked? Was it picked up right away but did it take that long to...
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
> As per our understanding, the second job should have started immediately. That's right. The first job should have unblocked the second job [here](https://github.com/rails/solid_queue/blob/019d7c7de42c10e5f2e86ab4aa771816c735f947/app/models/solid_queue/claimed_execution.rb#L70) 🤔 Would it be possible for...
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
I think you could try `SolidQueue::Semaphore` and `SolidQueue::BlockedExecution`. I think any clues would involve any of those records.
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
Ohhhh, this is super useful, @leondmello! I think I know what's going on, thanks to your logs. Looks like a tricky race condition. Basically, what happens is that your first...
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
@leondmello, no, no worries about that. I meant the transaction isolation level in your DB (I imagined you're using PostgreSQL because of the logs), but thinking more about it, it...
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
Thinking more about this and how to fix... Claiming the semaphore + enqueuing the job happens in a transaction, but the semaphore is not locked if it exists because [it's...
Job with concurrency key blocked when it shouldn't have, eventually was run after `duration` expired
Hey @leondmello, unfortunately not 😞 I've got an idea that might work, but I haven't been able to test it carefully as I think it's going to cause problems under...