-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(queue): migrate to @athenna/queue
- Loading branch information
Showing
15 changed files
with
130 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,5 @@ MAIL_HOST=localhost | |
MAIL_PORT=5025 | ||
MAIL_USERNAME= | ||
MAIL_PASSWORD= | ||
|
||
QUEUE_CONNECTION=vanilla |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Env } from '@athenna/config' | ||
|
||
export default { | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Queue Connection Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Athenna's queue API supports an assortment of back-ends via a single | ||
| API, giving you convenient access to each back-end using the same | ||
| syntax for every one. Here you may define a default connection. | ||
| | ||
*/ | ||
|
||
default: Env('QUEUE_CONNECTION', 'vanilla'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Queue Connections | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may configure the connection information for each server that | ||
| is used by your application. A default configuration has been added | ||
| for each back-end shipped with Athenna. You are free to add more. | ||
| | ||
| Drivers: "vanilla", "database", "fake" | ||
| | ||
*/ | ||
|
||
connections: { | ||
vanilla: { | ||
driver: 'vanilla', | ||
queue: 'default', | ||
workerInterval: 5000, | ||
deadletter: 'deadletter' | ||
}, | ||
|
||
database: { | ||
driver: 'database', | ||
table: 'jobs', | ||
connection: 'postgres', | ||
queue: 'default', | ||
workerInterval: 1000, | ||
deadletter: 'deadletter' | ||
}, | ||
|
||
discard: { | ||
driver: 'fake' | ||
}, | ||
|
||
fake: { | ||
driver: 'fake' | ||
} | ||
} | ||
} |
Oops, something went wrong.