inst-jobs 0.15.16 → 0.15.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10580a9e748bdaf9facf0868524ca637d41096bfd8ac3f2f36771f985d964d1e
|
4
|
+
data.tar.gz: daf4a10f872e7c51dadd12ff8e382c709de1cf84a56f3813395cc8d60392f664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61beb13be5d8093922437ae2a56ce2fa70f2024d5a50657074801b9e3dc55793fa7382c1b417f9acd3189eba947949cd624687a28398e011ecf54f2d62c0f842
|
7
|
+
data.tar.gz: 89a6665cf1bda550619daf224141d3b9e37c68daa7b4c9daa993e5751d10ae68c5ba5609b59c3822c6a3a4ce536475a4884b08f03a4a5392b986ca66e57f1cdc
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class AddIdToGetDelayedJobsIndex < ActiveRecord::Migration[4.2]
|
2
|
+
disable_ddl_transaction! if respond_to?(:disable_ddl_transaction!)
|
3
|
+
|
4
|
+
def connection
|
5
|
+
Delayed::Job.connection
|
6
|
+
end
|
7
|
+
|
8
|
+
def up
|
9
|
+
rename_index :delayed_jobs, "get_delayed_jobs_index", "get_delayed_jobs_index_old"
|
10
|
+
add_index :delayed_jobs, [:queue, :priority, :run_at, :id],
|
11
|
+
algorithm: :concurrently,
|
12
|
+
where: "locked_at IS NULL AND next_in_strand",
|
13
|
+
name: "get_delayed_jobs_index"
|
14
|
+
remove_index :delayed_jobs, name: "get_delayed_jobs_index_old"
|
15
|
+
end
|
16
|
+
|
17
|
+
def down
|
18
|
+
rename_index :delayed_jobs, "get_delayed_jobs_index", "get_delayed_jobs_index_old"
|
19
|
+
add_index :delayed_jobs, [:priority, :run_at, :queue],
|
20
|
+
algorithm: :concurrently,
|
21
|
+
where: "locked_at IS NULL AND next_in_strand",
|
22
|
+
name: "get_delayed_jobs_index"
|
23
|
+
remove_index :delayed_jobs, name: "get_delayed_jobs_index_old"
|
24
|
+
end
|
25
|
+
end
|
data/lib/delayed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-02
|
12
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -342,6 +342,7 @@ files:
|
|
342
342
|
- db/migrate/20161206323555_add_back_default_string_limits_jobs.rb
|
343
343
|
- db/migrate/20181217155351_speed_up_max_concurrent_triggers.rb
|
344
344
|
- db/migrate/20190726154743_make_critical_columns_not_null.rb
|
345
|
+
- db/migrate/20200330230722_add_id_to_get_delayed_jobs_index.rb
|
345
346
|
- exe/inst_jobs
|
346
347
|
- lib/delayed/backend/active_record.rb
|
347
348
|
- lib/delayed/backend/base.rb
|