que-web 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/que/web/sql.rb +4 -4
  3. data/que-web.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e53a5fe5f561cbf449575e05ad141345204277b
4
- data.tar.gz: 1af28bcab33f8059756d23ea09c1f02a8ff9076e
3
+ metadata.gz: 4389d095b6146abeac6215180e03368d816eaf52
4
+ data.tar.gz: ff11e38b4a34408a28cfb43dd24994f66f7689bd
5
5
  SHA512:
6
- metadata.gz: 2652924191d5f36e784f792667f8f46c5e0dc656dc6116125f1283bff1d021e9969dfb75e3551f9bc4c15c58136036faa191f0fe6153cbc3d323dc690abe146c
7
- data.tar.gz: b6d717da60ddc3156fc4b9fed6c26578dd643a4e0a864ab8d06c1b12e361db4593823a4bbc673c3528feb6d64fc539836b5c9c1308ae52137c7920546709d729
6
+ metadata.gz: dd2ebf7ed93e4deb817c2d4e8aced095da61fd84a1a29fdce98ec6895b588838e1c95b449b05c6d048633e20bd3e449f1cbe41edebcd3fc938128e7bf3907c16
7
+ data.tar.gz: 8dc33b33997526758ec73f34025af38cf8445a37b2ba2bc630f1c6a45936dd4b4ca1c3d7c5b25cd6b4cbe8502d44cfca02906c0243f9d3b7ba73fcb79924d4c2
data/lib/que/web/sql.rb CHANGED
@@ -43,15 +43,15 @@ Que::Web::SQL = {
43
43
  DELETE
44
44
  FROM que_jobs
45
45
  WHERE job_id = $1::bigint
46
- AND pg_try_advisory_lock($1::bigint)
47
- RETURNING job_id
46
+ AND pg_try_advisory_lock(job_id)
47
+ RETURNING pg_advisory_unlock(job_id)
48
48
  SQL
49
49
  reschedule_job: <<-SQL.freeze,
50
50
  UPDATE que_jobs
51
51
  SET run_at = $2::timestamptz
52
52
  WHERE job_id = $1::bigint
53
- AND pg_try_advisory_lock($1::bigint)
54
- RETURNING job_id
53
+ AND pg_try_advisory_lock(job_id)
54
+ RETURNING pg_advisory_unlock(job_id)
55
55
  SQL
56
56
  fetch_job: <<-SQL.freeze,
57
57
  SELECT *
data/que-web.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "que-web"
7
- spec.version = "0.6.0"
7
+ spec.version = "0.6.1"
8
8
  spec.authors = ["Jason Staten"]
9
9
  spec.email = ["jstaten07@gmail.com"]
10
10
  spec.summary = %q{A web interface for the que queue}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Staten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: que