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

41 commits

Author SHA1 Message Date
8b793e0cf2 Fix composer.json syntax 2024-01-27 23:02:10 +01:00
7a8135f1c6 Laravel 11 support 2024-01-27 23:00:15 +01:00
6069516b57 gitignore .DS_Store 2024-01-27 22:58:21 +01: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
Samuel Štancl
cd2c5c39ad
Merge pull request #9 from hackerESQ/patch-1
adds error catching to handle method
2022-03-20 21:53:38 +01:00
hackerESQ
d7f2f027f7
adds tests 2022-03-20 14:10:10 -05: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
Samuel Štancl
15b38fbcdb
Merge pull request #7 from abrardev99/l9-support
Add support for Laravel 9.
2022-02-02 01:24:51 +01:00
Abrar Ahmad
25f8d504e5 wip 2022-02-01 21:50:56 +05:00
Samuel Štancl
8bbed4fc29
Update composer.json 2021-12-06 16:11:33 +01:00
Samuel Štancl
9d8a3d5596 Add test value store 2020-11-15 16:19:15 +01:00
Samuel Štancl
906caa0872 Merge branch 'master' of github.com:stancl/jobpipeline 2020-11-15 16:11:12 +01:00
Samuel Štancl
f86e55ace7 Add the ability to use closures inside pipelines 2020-11-15 16:11:02 +01:00
Samuel Štancl
9a896b730c
Mention returning false 2020-11-12 19:46:35 +01:00
Samuel Štancl
86873515ae Allow canceling pipelines by returning false from handle() 2020-11-12 19:33:31 +01:00
Samuel Štancl
8fcac74f86
Merge pull request #4 from andresayej/l8-test
First try at Laravel 8 support + more advanced CI
2020-09-08 18:48:35 +02:00
Andre Sayej
09e3c1150e
Add Redis & remove windows from CI because of it 2020-09-07 12:29:37 +03:00
Andre Sayej
02b0c4b6c9
First try at Laravel 8 support + more advanced CI 2020-09-07 12:16:49 +03: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
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
74b971caef
Create .gitattributes 2020-05-16 05:54:46 +02:00
Samuel Štancl
a014ac2f5a
Merge pull request #3 from stancl/revert-1-patch-1
Revert "Enhance CI"
2020-05-16 05:53:31 +02:00
Samuel Štancl
9329a5504d
Revert "Enhance CI" 2020-05-16 05:53:21 +02:00
Samuel Štancl
4475bb1393
Merge pull request #1 from szepeviktor/patch-1
Enhance CI
2020-05-15 20:04:23 +02:00
Viktor Szépe
a0ace4d035 Update Composer lock file 2020-05-15 17:54:41 +00:00
Samuel Štancl
476ec44e85
Add image 2020-05-15 19:48:34 +02:00
Viktor Szépe
90b909eba0
Revert naming tests "unit tests" 2020-05-15 19:42:36 +02:00
Samuel Štancl
2d309ce417
Remove comma 2020-05-15 19:37:58 +02:00
Viktor Szépe
7b08f48ae4
Enhance CI 2020-05-15 19:19:13 +02:00
Samuel Štancl
9dae38398b
Create README.md 2020-05-15 18:36:23 +02:00
Samuel Štancl
2ebf6e46f7
Create LICENSE 2020-05-15 18:28:16 +02:00
Samuel Štancl
b2a6e11ea2 Add valuestore file 2020-05-15 18:13:17 +02:00
Samuel Štancl
5c9f3a4d6d Remove Laravel version matrix 2020-05-15 18:11:06 +02:00
Samuel Štancl
90c59626c2 Initial commit 2020-05-15 18:07:28 +02:00