undkonsorten / taskqueue

Manges async tasks given from other typo3 extensions
1 stars 2 forks source link

TaskRepository :: Task ordering #9

Closed LinkPool2 closed 1 year ago

LinkPool2 commented 1 year ago

TaskRepository.php

change the orderings in the TaskRepository.ph from:

        $orderings = [
            'priority' => QueryInterface::ORDER_DESCENDING,
            'tstamp' => QueryInterface::ORDER_DESCENDING
        ];

to:

$orderings = [
     'priority' => QueryInterface::ORDER_DESCENDING,
     'retries' => QueryInterface::ORDER_ASCENDING,
     'uid' => QueryInterface::ORDER_ASCENDING
]; 

so, the oldest tasks would be done at first.

Starkmann commented 1 year ago

This feature is now available in develop, if everything fine i would merge it and create a release.

LinkPool2 commented 1 year ago

Tested with TYPO3 11.5 10.000 Mails, 500 Mails per Cycle, 1 Cycle every 5 Minute

LinkPool2 commented 1 year ago

done