Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
3bf15fa
Fix anchor link
skeggse Jun 28, 2017
faa2e83
Add sublime project file
Jun 30, 2017
aa70c55
Remove outdated example
Jun 30, 2017
c7148d4
Update gitignore
Jun 30, 2017
2737da6
Update eslint
Jul 5, 2017
97d052a
Add direct eslint script
Jul 5, 2017
6090592
Add es6 to eslintrc
Jun 30, 2017
f2cfb01
Rewrite
Jun 30, 2017
1c2fb84
Update LICENSE
Jun 30, 2017
9e5211c
Update README
Jul 7, 2017
227d222
Add Bull features for full Arena compatibility
randallm Jul 11, 2017
3373231
Add use strict for node 4
Jul 13, 2017
f22521d
Add a verbose option to emit extra events
Jul 13, 2017
0bd9dd3
Pass the job id and timestamp with the verbose events
Jul 13, 2017
a53e764
Making eslint happy
Jul 13, 2017
f611c03
Timestamp is within the options object
Jul 13, 2017
3efeb8d
Push delayed jobs to the end of the queue
skeggse Jul 14, 2017
845defa
Add more verbose logging
Jul 17, 2017
2f18939
Fix logging
Jul 17, 2017
4a0f560
Use ava for tests
Jul 19, 2017
4ae15be
Run tests only once on travis
Jul 19, 2017
c202cd4
Only restart jobs that actually stall
Jul 15, 2017
25dca96
Push stalled jobs to the end of the queue
Jul 15, 2017
e29eaf2
Fix potential stall timing issue
Jul 14, 2017
e6fe9f4
Rename .eslintrc to .json
Jul 19, 2017
33d64fc
Fix shadowed variable
Jul 19, 2017
9cdb231
Run eslint with test
Jul 19, 2017
41252b7
Fix style per eslint
Jul 19, 2017
5a724e6
Fix incomplete tests
Jul 19, 2017
6a052f3
Fix close timeout test race condition
Jul 19, 2017
b32de6e
Fix stalled job handling after close timeout
Jul 19, 2017
9aeeb66
Add comprehensive stalled job test
Jul 19, 2017
8481cb3
Remove unnecessary unhandledRejection handler
Jul 19, 2017
11eb0aa
Remove unused console logs
Jul 19, 2017
5964871
Add console eslint rule
Jul 19, 2017
a13c977
Add undef eslint rule
Jul 20, 2017
05a2b9f
Accept more inputs as timestamps for delayUntil
Jul 20, 2017
f321423
Fix test cross-dependency
Jul 20, 2017
5f53a04
Add additional test error handling
Jul 20, 2017
e18d795
Refactor init and closing handling
Jul 20, 2017
49c6604
Remove redundant check, add comments
Jul 20, 2017
50c2262
Ignore actual failure case
Jul 20, 2017
470106d
Add more tests
Jul 20, 2017
b9d7aeb
Update benchmarks
Jul 25, 2017
13bf3de
Add benchmark results summary
Jul 25, 2017
fb3ef62
Correctly handle Job-related client commands
Jul 25, 2017
532c135
Improve stall check error handling
Jul 25, 2017
c766ba0
More README updates
Jul 25, 2017
9b5248d
README style changes
Jul 25, 2017
4d26c76
Better code coverage, minor refactors
Jul 26, 2017
b7db402
Fix comment
Jul 26, 2017
7a1b030
revamp getJobs to fit redis data structures
randallm Jul 26, 2017
d44b13a
add getJobs tests
randallm Jul 26, 2017
0c2e23c
increase test timeout
randallm Jul 26, 2017
03a5172
add safety belts + improve code style
randallm Jul 26, 2017
5038e4b
more code style improvements
randallm Jul 26, 2017
d0048f8
Merge pull request #14 from mixmaxhq/randall/get-jobs-coverage
randallm Jul 27, 2017
3de313c
add Queue#getJobs docs
randallm Jul 27, 2017
e55c89b
Merge pull request #15 from mixmaxhq/randall/get-jobs-docs
randallm Jul 27, 2017
0fa10f4
Remove verbose logging
Aug 7, 2017
e5629ec
Enforce line length for source files
Aug 7, 2017
f74aa13
Fix style in Gruntfile
Aug 7, 2017
5ec82c1
Typo
Aug 7, 2017
57f5f40
Implement Queue as a class
Aug 7, 2017
83d9f75
Implement Job as a class
Aug 7, 2017
280cffc
Remove delayed key in destroy
Aug 7, 2017
6548785
Add nyc output to sublime ignore
Aug 8, 2017
c85ba49
Use HMGET for getJobs
Aug 8, 2017
29b4b5d
Remove arguments leak
Aug 8, 2017
68d0673
Remove grunt
Aug 8, 2017
177f10d
Simplify logic
Aug 8, 2017
8bf0b75
Add explanatory comment
Aug 8, 2017
9195389
Remove unnecessary check
Aug 8, 2017
025ceb4
Remove captureExceptions option
Aug 8, 2017
7c41e3f
Rename processDelayed to activateDelayedJobs
Aug 8, 2017
c5a7c89
Typos
Aug 8, 2017
79cd1dd
Add memory usage comment for storeJobs
Aug 8, 2017
04ca984
Add test speed TODO
Aug 8, 2017
0abaf19
Only create the delayed timer when used
Aug 8, 2017
4574ac0
Avoid creating multiple hidden classes for Queue
Aug 8, 2017
c9304a1
Simplify checkStalledJobs script
Aug 8, 2017
2e392f0
Reuse jobs for getJobs when available
Aug 8, 2017
66d8cf0
Simplify onMessage handler
Aug 8, 2017
936b9b6
README fixes
Aug 8, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"env": {
"node": true,
"es6": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs"],
Expand All @@ -13,6 +17,7 @@
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3}}],
"key-spacing": 1,
"new-cap": [2, {"capIsNew": false}],
"no-console": 2,
"no-extra-parens": 1,
"no-floating-decimal": 2,
"no-inner-declarations": 2,
Expand All @@ -22,22 +27,21 @@
"no-shadow": 1,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"],
"no-var": 2,
"no-warning-comments": [1, {"terms": ["todo"], "location": "anywhere"}],
"object-curly-spacing": [2, "never"],
"quotes": [2, "single"],
"semi": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-after-keywords": [2, "always"],
"keyword-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": 2,
"space-infix-ops": 2,
"strict": 0
},
"env": {
"node": true
}
}
37 changes: 35 additions & 2 deletions .gitignore
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
14 changes: 7 additions & 7 deletions .travis.yml
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
33 changes: 0 additions & 33 deletions Gruntfile.js

This file was deleted.

21 changes: 18 additions & 3 deletions HISTORY.md
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

Copy link
Copy Markdown

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

==================

* 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
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2015 Lewis J Ellis
Original work Copyright (c) 2015 Lewis J Ellis
Subsequent revisions Copyright (c) 2017 Mixmax, Inc and Lewis J Ellis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading