Comments (2)
Just use the keyPrefix attribute of connection.
E.g.
import Env from '@ioc:Adonis/Core/Env'
import { BullConfig } from '@ioc:Rocketseat/Bull'
import Application from '@ioc:Adonis/Core/Application'
/*
|--------------------------------------------------------------------------
| Bull configuration
|--------------------------------------------------------------------------
|
| Following is the configuration used by the Bull provider to connect to
| the redis server.
|
| Do make sure to pre-define the connections type inside `contracts/bull.ts`
| file for Rocketseat/Bull to recognize connections.
|
| Make sure to check `contracts/bull.ts` file for defining extra connections
*/
const bullConfig: BullConfig = {
connection: Env.get('BULL_CONNECTION', 'local'),
connections: {
local: {
host: Env.get('BULL_REDIS_HOST', 'localhost'),
port: Env.get('BULL_REDIS_PORT'),
password: Env.get('BULL_REDIS_PASSWORD'),
keyPrefix: Application.inProduction ? 'yourUniqueProjectPrefix-prod' : 'yourUniqueProjectPrefix-dev',
},
},
}
export default bullConfig
from adonis-bull.
keyPrefix will not work on v5 version more details here #116
from adonis-bull.
Related Issues (20)
- How to test jobs with Japa?
- No context in bull exceptions handler like in default one.
- Support for addBulk
- Properties names in job are with underscores
- Support AdonisJS 5?
- BullMQ connection options deprecation
- keyPrefix issue no data passed, Error: Missing lock for job (v5) HOT 1
- How can we keep the data persistent when server goes down
- How to protect the bull board behind a login form?
- Conflicting readme and description - is this library ready for Adonis v5 or not?
- v5 job file malformed HOT 1
- Is this project officially out of support? HOT 3
- Remove repeatable jobs HOT 2
- Adonis v6 HOT 1
- What is the recommended setup for multiple workers?
- Cannot read property 'bull' of undefined HOT 1
- General improvements (v5)
- how do i schedule a task to repeat every 1st of the month or choose the day? HOT 1
- Dúvida sobre o Bull HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonis-bull.