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

14 commits

Author SHA1 Message Date
Julian Hundeloh
524f05e749
feat: allow custom method names 2024-05-24 19:14:22 +02:00
Samuel Štancl
71fb237462 Fix code style (php-cs-fixer) 2023-03-16 21:14:57 +00:00
Jonathan Prass Martins
d7a9e6796e
Possibility to change the default configurations for the queue jobs. (#13)
* 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()
```

* Add .idea directory to gitignore

* The following methods where added: onConnection, onQueue, delay, tries, shouldBeQueuedOn. The signature of shouldBeQueued was changed too.

* reuse shouldBeQueuedOn

* updating docs

* added timeout

* docs updated

* .phpunit.cache/ added to gitignore

* tests for shouldQueueOn method

* leave only shouldBeQueued method

* update README

* remove unnecessary property declarations

* Delete  jobpipelinetest.json

* add jobpipelinetest.json as a empty file

* update readme

* simplify tests

* improve code

* improve readme

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2023-03-16 22:14:36 +01: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