Comparing version 0.4.0 to 0.4.1
@@ -5,2 +5,6 @@ # Changelog | ||
## v0.4.1 | ||
- Use `filter` instead of `must` to query for outstanding jobs | ||
## v0.4.0 | ||
@@ -7,0 +11,0 @@ |
@@ -299,4 +299,4 @@ 'use strict'; | ||
bool: { | ||
must: { term: { jobtype: this.jobtype } }, | ||
should: [{ term: { status: 'pending' } }, { bool: { must: [{ term: { status: 'processing' } }, { range: { process_expiration: { lte: nowTime } } }] } | ||
filter: { term: { jobtype: this.jobtype } }, | ||
should: [{ term: { status: 'pending' } }, { bool: { filter: [{ term: { status: 'processing' } }, { range: { process_expiration: { lte: nowTime } } }] } | ||
}] | ||
@@ -303,0 +303,0 @@ } |
{ | ||
"name": "esqueue", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Job queue, powered by Elasticsearch", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34349