que-scheduler 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/que/scheduler/migrations/9/down.sql +1 -0
- data/lib/que/scheduler/migrations/9/up.sql +1 -0
- data/lib/que/scheduler/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab54c19040f766a045ed5d8b36c6204a69fa908add11f02c6f1d30f354c6235d
|
|
4
|
+
data.tar.gz: 6cd41e7125e7d964dfcde0fcdab30cf9a1a1ab25a4a690288504b8252f495f08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59738cdf4bd5c93a252b70dd09fc9c3fd3a1d9bbba1595794c33cb18fc4fe11c4be48dbdd29685709a739739cd37a83ab8915d528f5f8e8a832257425bcc04a8
|
|
7
|
+
data.tar.gz: 68517d04f22ebd27ddfb987a70db9cdc0e20b526e171e4e6180c27233f4d80421ce6f347f649a85a76e6b504d28c47383a01bb8c33d4b00d6a784129c67f478a
|
data/README.md
CHANGED
|
@@ -28,7 +28,7 @@ resque-scheduler files, but with additional features.
|
|
|
28
28
|
```ruby
|
|
29
29
|
class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
|
|
30
30
|
def change
|
|
31
|
-
Que::Scheduler::Migrations.migrate!(version:
|
|
31
|
+
Que::Scheduler::Migrations.migrate!(version: 9)
|
|
32
32
|
Que::Scheduler::Migrations.reenqueue_scheduler_if_missing
|
|
33
33
|
end
|
|
34
34
|
end
|
|
@@ -216,7 +216,7 @@ performed.
|
|
|
216
216
|
```ruby
|
|
217
217
|
class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
|
|
218
218
|
def change
|
|
219
|
-
Que::Scheduler::Migrations.migrate!(version:
|
|
219
|
+
Que::Scheduler::Migrations.migrate!(version: 9)
|
|
220
220
|
Que::Scheduler::Migrations.reenqueue_scheduler_if_missing
|
|
221
221
|
end
|
|
222
222
|
end
|
|
@@ -234,6 +234,7 @@ The changes in past migrations were:
|
|
|
234
234
|
| 6 | Enforced single scheduler job at the trigger level |
|
|
235
235
|
| 7 | Prevent accidental deletion of scheduler job |
|
|
236
236
|
| 8 | Add primary key to audit. Note, this can be a slow migration if you have many rows! |
|
|
237
|
+
| 9 | Index `que_scheduler_audit_enqueued.scheduler_job_id` to speed up audit clear down |
|
|
237
238
|
|
|
238
239
|
The changes to the DB ([DDL](https://en.wikipedia.org/wiki/Data_definition_language)) are all
|
|
239
240
|
captured in the structure.sql so will be re-run in correctly if squashed - except for the actual
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DROP INDEX que_scheduler_audit_enqueued_scheduler_job_id;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CREATE INDEX IF NOT EXISTS que_scheduler_audit_enqueued_scheduler_job_id ON que_scheduler_audit_enqueued USING btree (scheduler_job_id);
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: que-scheduler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 10.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harry Lascelles
|
|
@@ -399,6 +399,8 @@ files:
|
|
|
399
399
|
- lib/que/scheduler/migrations/7/up.sql
|
|
400
400
|
- lib/que/scheduler/migrations/8/down.sql
|
|
401
401
|
- lib/que/scheduler/migrations/8/up.sql
|
|
402
|
+
- lib/que/scheduler/migrations/9/down.sql
|
|
403
|
+
- lib/que/scheduler/migrations/9/up.sql
|
|
402
404
|
- lib/que/scheduler/schedule.rb
|
|
403
405
|
- lib/que/scheduler/schedule_type.rb
|
|
404
406
|
- lib/que/scheduler/scheduler_job.rb
|