Comments (3)
Fala Evandro!
Na verdade você deve especificar dentro do config/bull.js
, qual configuração do config/redis.js
ele vai utilizar, então se no arquivo config/redis.js
você tem a seguinte configuração:
const Env = use('Env');
module.exports = {
connection: Env.get('REDIS_CONNECTION', 'local'),
local: {
host: '127.0.0.1',
port: 6379,
password: null,
db: 0,
keyPrefix: '',
},
bull: {
host: Env.get('REDIS_HOST', '127.0.0.1'),
port: Env.get('REDIS_PORT', '6379'),
password: Env.get('REDIS_PASSWORD', null),
db: 0,
keyPrefix: '',
},
cluster: {
clusters: [
{
host: '127.0.0.1',
port: 6379,
password: null,
db: 0,
},
{
host: '127.0.0.1',
port: 6380,
password: null,
db: 0,
},
],
},
};
Você tem 3 opções de conexão: local
, bull
e cluster
.
Na config/bull.js
você define qual delas você usará para o seu bull
.
module.exports = {
connection: 'bull',
};
from adonis-bull.
Descobri o que tava ocorrendo, eu não usava a porta padrão 6379, utilizo a porta 6380 por ter conflito de portas. Porém quando é utilizado no docker-compose ports: - "6380:6380"
não basta, não é possível fazer conexão ao banco redis. Para isso é necessário seguir o exemplo desse maravilhoso comentário que me salvou:
luin/ioredis#763 (comment)
redis:
image: 'redis:alpine'
container_name: redis
command: ["redis-server", "--bind", "redis", "--port", "6380"]
ports:
- "6380:6380"
Valeu pela ajuda @HigoRibeiro
from adonis-bull.
Hey @evandrogrm, while contributing or interacting in any way in this project, refrain from using any language other than English. I recommend you take a look at the guidelines described here
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
- Adonis 4: Installation fails HOT 3
- How to change from Http server startup to command 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
- Adonis v5 Key Prefix HOT 2
- 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.