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

5 commits

Author SHA1 Message Date
6069516b57 gitignore .DS_Store 2024-01-27 22:58:21 +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
Abrar Ahmad
25f8d504e5 wip 2022-02-01 21:50:56 +05:00
Andre Sayej
02b0c4b6c9
First try at Laravel 8 support + more advanced CI 2020-09-07 12:16:49 +03:00
Samuel Štancl
90c59626c2 Initial commit 2020-05-15 18:07:28 +02:00