le-dams/queue-client

Queue client for le-dams/queue-server

2.0.8 2024-08-17 21:40 UTC

This package is auto-updated.

Last update: 2025-03-17 23:20:36 UTC


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);