Repository navigation
Rewrite bee-queue 1.0.0 #64
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
Merged
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
3bf15fa
Fix anchor link
skeggse faa2e83
Add sublime project file
aa70c55
Remove outdated example
c7148d4
Update gitignore
2737da6
Update eslint
97d052a
Add direct eslint script
6090592
Add es6 to eslintrc
f2cfb01
Rewrite
1c2fb84
Update LICENSE
9e5211c
Update README
227d222
Add Bull features for full Arena compatibility
randallm 3373231
Add use strict for node 4
f22521d
Add a verbose option to emit extra events
0bd9dd3
Pass the job id and timestamp with the verbose events
a53e764
Making eslint happy
f611c03
Timestamp is within the options object
3efeb8d
Push delayed jobs to the end of the queue
skeggse 845defa
Add more verbose logging
2f18939
Fix logging
4a0f560
Use ava for tests
4ae15be
Run tests only once on travis
c202cd4
Only restart jobs that actually stall
25dca96
Push stalled jobs to the end of the queue
e29eaf2
Fix potential stall timing issue
e6fe9f4
Rename .eslintrc to .json
33d64fc
Fix shadowed variable
9cdb231
Run eslint with test
41252b7
Fix style per eslint
5a724e6
Fix incomplete tests
6a052f3
Fix close timeout test race condition
b32de6e
Fix stalled job handling after close timeout
9aeeb66
Add comprehensive stalled job test
8481cb3
Remove unnecessary unhandledRejection handler
11eb0aa
Remove unused console logs
5964871
Add console eslint rule
a13c977
Add undef eslint rule
05a2b9f
Accept more inputs as timestamps for delayUntil
f321423
Fix test cross-dependency
5f53a04
Add additional test error handling
e18d795
Refactor init and closing handling
49c6604
Remove redundant check, add comments
50c2262
Ignore actual failure case
470106d
Add more tests
b9d7aeb
Update benchmarks
13bf3de
Add benchmark results summary
fb3ef62
Correctly handle Job-related client commands
532c135
Improve stall check error handling
c766ba0
More README updates
9b5248d
README style changes
4d26c76
Better code coverage, minor refactors
b7db402
Fix comment
7a1b030
revamp getJobs to fit redis data structures
randallm d44b13a
add getJobs tests
randallm 0c2e23c
increase test timeout
randallm 03a5172
add safety belts + improve code style
randallm 5038e4b
more code style improvements
randallm d0048f8
Merge pull request #14 from mixmaxhq/randall/get-jobs-coverage
randallm 3de313c
add Queue#getJobs docs
randallm e55c89b
Merge pull request #15 from mixmaxhq/randall/get-jobs-docs
randallm 0fa10f4
Remove verbose logging
e5629ec
Enforce line length for source files
f74aa13
Fix style in Gruntfile
5ec82c1
Typo
57f5f40
Implement Queue as a class
83d9f75
Implement Job as a class
280cffc
Remove delayed key in destroy
6548785
Add nyc output to sublime ignore
c85ba49
Use HMGET for getJobs
29b4b5d
Remove arguments leak
68d0673
Remove grunt
177f10d
Simplify logic
8bf0b75
Add explanatory comment
9195389
Remove unnecessary check
025ceb4
Remove captureExceptions option
7c41e3f
Rename processDelayed to activateDelayedJobs
c5a7c89
Typos
79cd1dd
Add memory usage comment for storeJobs
04ca984
Add test speed TODO
0abaf19
Only create the delayed timer when used
4574ac0
Avoid creating multiple hidden classes for Queue
c9304a1
Simplify checkStalledJobs script
2e392f0
Reuse jobs for getJobs when available
66d8cf0
Simplify onMessage handler
936b9b6
README fixes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,5 +1,38 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| notes.txt | ||
| node_modules | ||
| npm-debug.log* | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| dump.rdb | ||
|
|
||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||
| lib-cov | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
|
|
||
| # nyc test coverage | ||
| .nyc_output | ||
|
|
||
| # node-waf configuration | ||
| .lock-wscript | ||
|
|
||
| # Compiled binary addons (http://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules | ||
| jspm_packages | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional REPL history | ||
| .node_repl_history | ||
| .DS_Store | ||
| *.sublime-workspace | ||
| notes.txt |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| before_script: | ||
| - npm install -g eslint | ||
| - npm install -g grunt-cli | ||
| - npm install -g istanbul | ||
| language: node_js | ||
| node_js: | ||
| - "0.12" | ||
| - "0.10" | ||
| - 4 | ||
| - 6.9.1 | ||
| - 6 | ||
| - 7.6.0 | ||
| - 7 | ||
| - node | ||
| services: redis | ||
| after_script: | ||
| - redis-cli script flush | ||
| - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage | ||
| - npm run ci |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,14 +1,29 @@ | ||
| 0.3.0 / 09-01-2015 | ||
| 1.0.0 / 2017-06-30 | ||
| ================== | ||
|
|
||
| * Upgrade node-redis to 2.7.1 | ||
| Note that redis connection options now match the latest redis. | ||
| * Implement delayed jobs | ||
| * Implement fixed, exponential backoff strategies | ||
| * Add promise support | ||
| * Fix race conditions in tests | ||
| * Add new performance settings | ||
| * Emit stalled event for stalled jobs | ||
| * Implement graceful shutdown | ||
| * Support user-specified jobids (should be non-numeric) | ||
| * Add timeout, stacktraces to job options | ||
|
|
||
| 0.3.0 / 2015-09-01 | ||
| ================== | ||
|
|
||
| * Bump node-redis dependency to 1.0.0 | ||
|
|
||
| 0.2.0 / 06-12-2015 | ||
| 0.2.0 / 2015-06-12 | ||
| ================== | ||
|
|
||
| * Initial release | ||
|
|
||
| 0.1.0 / 01-26-2015 | ||
| 0.1.0 / 2015-01-26 | ||
| ================== | ||
|
|
||
| * Early development | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these new features need to be documented in the readme