1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-15 18:44:03 +00:00
Commit graph

16 commits

Author SHA1 Message Date
Jonathan Martins
ef4ded6e4e leave only shouldBeQueued method 2023-03-02 14:19:06 -03:00
Jonathan Martins
63f58e6a99 added timeout 2023-02-25 12:16:12 -03:00
Jonathan Martins
29fb12fd4b reuse shouldBeQueuedOn 2023-02-25 11:53:59 -03:00
Jonathan Martins
7e618f6950 The following methods where added: onConnection, onQueue, delay, tries, shouldBeQueuedOn. The signature of shouldBeQueued was changed too. 2023-02-25 11:49:51 -03:00
Jonathan Prass Martins
c75c76e49a
Add $queue attribute
This code enables me to change the queue name that the JobPipeline will be pushed to.

Now I can do something like this:
```php
JobPipeline::make([
    Jobs\CreateDatabase::class,
    Jobs\MigrateDatabase::class,
    // Jobs\SeedDatabase::class,

    // Your own jobs to prepare the tenant.
    // Provision API keys, create S3 buckets, anything you want!

])->send(function (Events\TenantCreated $event)
{
    return $event->tenant;
})->onQueue('another-queue')
    ->shouldBeQueued()
```
2023-02-25 11:13:37 -03:00
Guilherme Saade
bfc53f6dd6
L10 compatibility (#12)
* Bump dependencies for Laravel 10

* Update GitHub Actions for Laravel 10

* drop < L9 support

* use `dispatch_sync` instead of `dispatch_now`

* migrate phpunit configuration

* update matrix format

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2023-02-16 11:43:17 +01:00
Samuel Štancl
fe0fc363e6 Fix code style (php-cs-fixer) 2022-03-30 15:12:15 +00:00
Samuel Štancl
57f4ebf555
Throw exception instead of just silently logging an error 2022-03-30 17:11:53 +02:00
hackerESQ
d636ab5fe3
fix style 2022-03-18 13:44:18 -05:00
hackerESQ
80947a4889
adds error catching to handle method 2022-03-17 19:10:30 -05:00
Abrar Ahmad
25f8d504e5 wip 2022-02-01 21:50:56 +05:00
Samuel Štancl
f86e55ace7 Add the ability to use closures inside pipelines 2020-11-15 16:11:02 +01:00
Samuel Štancl
86873515ae Allow canceling pipelines by returning false from handle() 2020-11-12 19:33:31 +01:00
Samuel Štancl
8d5ec9e001 Use null instead of unset 2020-05-17 19:27:03 +02:00
Samuel Štancl
52470fa734 shouldBeQueued() default value true 2020-05-16 12:02:47 +02:00
Samuel Štancl
90c59626c2 Initial commit 2020-05-15 18:07:28 +02:00