yii2-queue icon indicating copy to clipboard operation
yii2-queue copied to clipboard

Ttr and retry

Open loveorigami opened this issue 6 years ago • 1 comments

Q A
Yii version 2.0.20
PHP version 7.3
Operating system Linux

I am see #249, but I have also error with ttr.

I have job

  • ttr = 600
  • retry = 3
  • driver = redis

2019-06-17_15-34-28

The worker 4 start this job (time more, then ttr = 600 sec) The workers 6, 5, 8 restart this job after 600 s and ended with error, becouse worker 4 still running.

Job is buried, but worker 4 still worked.

2019-06-17_15-48-50

2019-06-17_15-47-41

2019-06-17_16-00-33

After restarting and change ttr to 1000, this job finished after 650 sec.

It is bug?

And also: If I have long job (ttr = 60*60 = 3600) with retry = 3 and have error in process, the restart this job will be after TTR (3600 sec = 1 h). But I have restart job with error after 10 min. It is possible?

loveorigami avatar Jun 17 '19 12:06 loveorigami

@zhuravljov any idea about it?

samdark avatar Jun 18 '19 14:06 samdark