Skip to content

Releases: roadrunner-php/jobs

v2.3.1

11 Jul 07:09
abad228
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

25 May 09:50
4008783
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

23 May 15:48
cf4f701
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.1...v2.2.0

v2.1.1

17 May 10:33
8502021
Compare
Choose a tag to compare
Merge pull request #15 from spiral/fix/job-auto-ack

Fixes problem with setting auto_ack for Job class

v2.1.0

16 May 18:16
9a49b10
Compare
Choose a tag to compare

What's Changed

use Spiral\RoadRunner\Jobs\Queue\MemoryCreateInfo;
use Spiral\RoadRunner\Jobs\Options;
use Spiral\RoadRunner\Jobs\Jobs;

// Create with default values
$options = new Options();

// Jobs service
$jobs = new Jobs(RPC::create('tcp://127.0.0.1:6001'));

// Select "test" queue from jobs
$queue = $jobs->connect('test');

// or create a new queue
$queue = $jobs->create(new MemoryCreateInfo('local'));

// Set default auto ack for all tasks
$queue = $queue->withDefaultOptions(
     $options->withAutoAck(true)
);

// Create a new task with custom auto ack
$task = $queue->push(
     'task_name', 
     ['foo' => 'bar'], 
     (new Options())->withAutoAck(false)
);

// or change auto ack for created task
$task = $queue->create(
     'task_name', 
     ['foo' => 'bar']
)->withAutoAck(false);

$queue->dispatch($task);

Full Changelog: v2.0.5...v2.1.0

v2.0.5

19 Jan 09:34
de1c101
Compare
Choose a tag to compare

What's Changed

  • Fixes problem with queue "is paused" state checking by @butschster in #12

New Contributors

Full Changelog: v2.0.4...v2.0.5

v2.0.4

18 Jan 17:54
3ca9661
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.2...v2.0.4

v2.0.2

30 Nov 08:34
bee8047
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.0.1

v2.0.0

02 Sep 18:03
314884b
Compare
Choose a tag to compare
Merge pull request #1 from spiral/feature/memory-driver-renaming

Rename ephemeral to memory driver

v2.0.0-rc1

02 Sep 17:42
314884b
Compare
Choose a tag to compare
v2.0.0-rc1 Pre-release
Pre-release
  • Rename "ephemeral" to "memory" driver and constants.
  • Fix SQS and Beanstalk drivers create DTOs.