-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from roggervalf/feature-retry-delayed-jobs
Retry bulk delayed jobs
- Loading branch information
Showing
6 changed files
with
60 additions
and
6 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
File renamed without changes.
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,46 @@ | ||
const Arena = require('../'); | ||
const Bull = require('bull'); | ||
const RedisServer = require('redis-server'); | ||
|
||
// Select ports that are unlikely to be used by other services a developer might be running locally. | ||
const HTTP_SERVER_PORT = 4735; | ||
const REDIS_SERVER_PORT = 4736; | ||
|
||
// Create a Redis server. This is only for convenience | ||
|
||
async function main() { | ||
const server = new RedisServer(REDIS_SERVER_PORT); | ||
await server.open(); | ||
|
||
Arena( | ||
{ | ||
Bull, | ||
|
||
queues: [ | ||
{ | ||
// Required for each queue definition. | ||
name: 'name_of_my_queue', | ||
|
||
// User-readable display name for the host. Required. | ||
hostId: 'Queue Server 1', | ||
|
||
// Queue type (Bull or Bee - default Bull). | ||
type: 'bull', | ||
|
||
redis: { | ||
// host: 'localhost', | ||
port: REDIS_SERVER_PORT, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
port: HTTP_SERVER_PORT, | ||
} | ||
); | ||
} | ||
|
||
main().catch((err) => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
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
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