[*] переработана система работы с кроновыми заданиями. Теперь добавить задание проще простого и не нужно постоянно лазить в кронтаб

This commit is contained in:
rsgrinko committed 2023-10-29 21:25:29 +03:00
1 parent c54cb5f9e1
commit b4f506cc1f
5 files changed
+104 -38

No files matched your search

+7 -2
View File
@@ -30,6 +30,11 @@
use Core\Models\MQ;
$fromPostId = $argv[1];
//sleep(5);
(new MQ())->setPriority(9)->setAttempts(3)->createTask('Core\MQTasks', 'getStory', [$fromPostId]);
(new MQ())->setPriority(9)
->setAttempts(2)
->createTask(
'Core\MQTasks',
'getStory',
[$fromPostId]
);