Skip to content

Commit

Permalink
Merge pull request #9 from myLocalInfluence/feature/pubsub-driver#8
Browse files Browse the repository at this point in the history
feat: Add PubSub Driver
  • Loading branch information
kangoo13 authored Jun 24, 2019
2 parents 5220f4e + dda7406 commit 3cb0f3e
Show file tree
Hide file tree
Showing 10 changed files with 1,273 additions and 1,264 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
WIP
# Laravel Jobs Plain

Remove the laravel dependency on jobs allowing you to process queue jobs with other non-laravel services that push plain json jobs into the queue.

# Config

Add the following to your `config/queue.php` :

```
'sqs-plain' => [
'driver' => 'sqs-plain',
'key' => env('AWS_QUEUE_KEY'),
'secret' => env('AWS_QUEUE_SECRET'),
'prefix' => env('AWS_PREFIX'),
'queue' => 'test',
'region' => 'eu-west-1',
],
'pubsub-plain' => [
'driver' => 'pubsub-plain',
'queue' => 'test',
'project_id' => env('PUBSUB_PROJECT_ID'),
'retries' => 3,
'request_timeout' => 60,
'keyFilePath' => base_path() . '/' . env('PUBSUB_QUEUE_KEY'),
],
```
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.2.1"
"google/cloud-pubsub": "^v1.13",
"phpspec/phpspec": "^5.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 3cb0f3e

Please sign in to comment.