le-dams / queue-client
Queue client for le-dams/queue-server
Installs: 1 045
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-json: *
- guzzlehttp/guzzle: ^6
- psr/log: ^1 || ^2 || ^3
Requires (Dev)
- phpunit/phpunit: ^5.7 || ^6.0
README
Create JOB
$client = new QueueClient\Client(getenv('QUEUE_BASE_URI'), getenv('QUEUE_SECRET_KEY'), time()); $jobRequest = new QueueClient\Transactions\JobRequest(); $jobRequest->setUri('https://www.google.be'); $jobRequest->setQueue('TEST'); $jobRequest->setPriority(QueueClient\Enum\Priority::LOW); $client->create($jobRequest);
Delete JOB
$client = new QueueClient\Client(getenv('QUEUE_BASE_URI'), getenv('QUEUE_SECRET_KEY'), time()); $client->delete(1);