New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repeatable jobs not starting #1404
Comments
Works for me. const { Queue, Worker, QueueScheduler } = require("bullmq");
const connection = {
host: "localhost",
port: 6379,
};
const queue = new Queue("named", {
connection,
});
const myQueueScheduler = new QueueScheduler("named", { connection });
const id = "123";
queue.add(
"test",
{
id,
},
{
repeat: {
every: 5000,
limit: 70,
},
}
);
const worker = new Worker(
"named",
async (job) => {
console.log("job", job.data.id);
},
{ connection }
); Results:
|
Is there no documentation on how to start repeatable jobs in v2? |
|
issue closed, I changed the way that I was calling the worker, and works well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys, I'm trying to start some repeatable jobs, but it's only being completed one time and stopping later:
my setup:
jobs.ts
endpoint.ts
app.ts
The text was updated successfully, but these errors were encountered: