[*] переработана система работы с кроновыми заданиями. Теперь добавить задание проще простого и не нужно постоянно лазить в кронтаб
This commit is contained in:
1 parent
c54cb5f9e1
commit
b4f506cc1f
5 files changed
+104
-38
No files matched your search
@@ -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]
|
||||
);
|
||||
Reference in new issue
Block a user