Skip to content

Releases: roadrunner-php/jobs

v2.9.0

20 Mar 08:03
5d7b9d2
Compare
Choose a tag to compare

What's Changed

  • Adds consume_all option to the AMQPCreateInfo DTO by @butschster in #44
  • Starting from v2023.1.0, RR requires a queue name (if the consumer is used) or/and routing key for the push operations. by @butschster in #45

Full Changelog: v2.8.1...v2.9.0

v2.8.1

14 Mar 07:59
948a452
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.8.0...v2.9.0

v2.8.0

24 Feb 09:41
47f2e1a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.7.0...v2.8.0

v2.7.0

03 Feb 13:20
a601d26
Compare
Choose a tag to compare

What's Changed

  • Adding ReceivedTaskFactory, adding KafkaReceivedTask by @msmakouz in #36

Full Changelog: v2.6.0...v2.7.0

v2.6.0

21 Oct 08:34
a6a233e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.1...v2.6.0

v2.5.1

11 Oct 08:28
f68f3cb
Compare
Choose a tag to compare

What's Changed

  • Fixes problem with receiving empty payload body. by @butschster in #25

Full Changelog: v2.5.0...v2.5.1

v2.5.0

20 Sep 09:24
f4e4974
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.0...v2.5.0

v3.0.0

16 Sep 13:51
e102efd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.0...v3.0.0

v2.4.0

23 Aug 12:43
e955d31
Compare
Choose a tag to compare

What's Changed

Create kafka pipeline

use Spiral\RoadRunner\Jobs\Queue\KafkaCreateInfo;
use Spiral\RoadRunner\Jobs\Jobs;

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

$kafkaCreateInfo = new KafkaCreateInfo(
     name: 'kafka-queue',
     topic: 'subscription',
     maxOpenRequests: 1000
);

$queue = $jobs->create($kafkaCreateInfo);

Push job into kafka pipeline

use Spiral\RoadRunner\Jobs\KafkaOptions;
use Spiral\RoadRunner\Jobs\Queue\Kafka\PartitionOffset;

$queue->dispatch(
      $queue->create(
            'job:name',
            ['foo' => 'bar'],
            new KafkaOptions(
                  topic: 'some-topic',
                  metadata: 'foo-bar',
                  offset: PartitionOffset::OFFSET_NEWEST
            )
      )
);

Changing options in a prepared task:

$queue = $jobs->create($kafkaCreateInfo);
        
$task = $queue->create(
    'job:name',
    ['foo' => 'bar'],
    new KafkaOptions(
        topic: 'some-topic',
        metadata: 'foo-bar',
        offset: PartitionOffset::OFFSET_NEWEST
    )
);
        
$queue->dispatch($task->withOptions(new KafkaOptions(
    topic: 'other',
    metadata: 'foo-bar',
    offset: PartitionOffset::OFFSET_NEWEST
)));

$queue->dispatch($task->withOptions($task->getOptions()->withTopic('other')));
$queue->dispatch($task->withDelay(10));

Create boltdb pipeline

use Spiral\RoadRunner\Jobs\Queue\BoltdbCreateInfo;
use Spiral\RoadRunner\Jobs\Jobs;

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

$boltdbCreateInfo = new BoltdbCreateInfo(
     name: 'boltdb-queue',
     file: 'rr.db'
);

$queue = $jobs->create($boltdbCreateInfo);

Full Changelog: v2.3.2...v2.4.0

v2.3.2

20 Jul 16:30
8a73bed
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.1...v2.3.2