1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 09:24:02 +00:00
Commit graph

10 commits

Author SHA1 Message Date
Julian Hundeloh
ebaa3fb317
fix: handle errors in closures (#17)
* fix: handle errors in closures

* test: add test
2024-11-09 20:58:38 +01: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
hackerESQ
d7f2f027f7
adds tests 2022-03-20 14:10:10 -05:00
Samuel Štancl
9d8a3d5596 Add test value store 2020-11-15 16:19:15 +01: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
31e07d6176 Add valuestore file 2020-05-21 19:43:23 +02:00
Samuel Štancl
2e5fa50352 Laravel 6 support 2020-05-21 19:41:20 +02:00
Samuel Štancl
b2a6e11ea2 Add valuestore file 2020-05-15 18:13:17 +02:00
Samuel Štancl
90c59626c2 Initial commit 2020-05-15 18:07:28 +02:00