php - Laravel job gets picked up multiple workers even though TTR is set to high values -
i trying work on job hits third party apis , gets data insert database. data takes more while come , insert.
i using beanstalkd queue driver , understand if job takes more 60 secs, default ttr, pushed ready queue waiting picked workers if still being processed worker picked in first place. result, 2 workers pick same job , end doublets or triplets of same database entries.
so did logically thing appeared me increase ttr 6000 close 2 hours , jobs can't possible take long. takes 3-5 mins job process.
but though set such high value, somehow multiple jobs still picking job. missing? there seems kind of race condition not able solve. ideas anyone?
Comments
Post a Comment