Refactored Interfaces and implemented Tamer, Gearman's protocol has been refactored by RabbitMQ needs refactoring
This commit is contained in:
parent
6d8d4a75a4
commit
c80b4b39c4
21 changed files with 1103 additions and 360 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
|
||||
use Tamer\Abstracts\TaskPriority;
|
||||
use Tamer\Objects\Task;
|
||||
|
||||
require 'ncc';
|
||||
|
@ -14,5 +14,7 @@
|
|||
|
||||
for($i = 0; $i < 500; $i++)
|
||||
{
|
||||
$client->do(new Task('sleep', '5'));
|
||||
$client->do(Task::create('sleep', '5')
|
||||
->setPriority(TaskPriority::High)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue