que-scheduler 4.6.0 → 5.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 +14 -12
- data/lib/que/scheduler/migrations/8/down.sql +1 -0
- data/lib/que/scheduler/migrations/8/up.sql +1 -0
- data/lib/que/scheduler/state_checks.rb +1 -1
- 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: 97c2b6fc33ff2ee357b0270dae679c66b50064eb8548f0e3be24c07ea504d939
|
4
|
+
data.tar.gz: c1ea678b7540e3f02ac5c7eee3416d20238819eb4050bb2f3d6e7183f342022a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdb0c8db5b2b9ab99e6a1e8b04a9710a8c19913ebdcc528ed71e0b27f3dad7231887fc8415d85a5aea3bd91304f7682402530a9612ee77037ecf04b2ea050d80
|
7
|
+
data.tar.gz: 4aed1036ef3f2d9937b8928ec0ccb6e6fc14651d8803cbaaddf52b3d0c3da3a7b744a4aa5db5a898440cef9edd45f77325009552fe3b7c5c9bbe9448b701e34f
|
data/README.md
CHANGED
@@ -25,9 +25,9 @@ resque-scheduler files, but with additional features.
|
|
25
25
|
will fail if Que is set to execute jobs synchronously, i.e. `Que::Job.run_synchronously = true`.
|
26
26
|
|
27
27
|
```ruby
|
28
|
-
class CreateQueSchedulerSchema < ActiveRecord::Migration
|
28
|
+
class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
|
29
29
|
def change
|
30
|
-
Que::Scheduler::Migrations.migrate!(version:
|
30
|
+
Que::Scheduler::Migrations.migrate!(version: 8)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
```
|
@@ -210,23 +210,25 @@ ie, This will perform all migrations necessary up to the latest version, skippin
|
|
210
210
|
performed.
|
211
211
|
|
212
212
|
```ruby
|
213
|
-
class CreateQueSchedulerSchema < ActiveRecord::Migration
|
213
|
+
class CreateQueSchedulerSchema < ActiveRecord::Migration[6.0]
|
214
214
|
def change
|
215
|
-
Que::Scheduler::Migrations.migrate!(version:
|
215
|
+
Que::Scheduler::Migrations.migrate!(version: 8)
|
216
216
|
end
|
217
217
|
end
|
218
218
|
```
|
219
219
|
|
220
220
|
The changes in past migrations were:
|
221
221
|
|
222
|
-
| Version | Changes
|
223
|
-
|
224
|
-
| 1 | Enqueued the main Que::Scheduler. This is the job that performs the scheduling.
|
225
|
-
| 2 | Added the audit table `que_scheduler_audit`.
|
226
|
-
| 3 | Added the audit table `que_scheduler_audit_enqueued`.
|
227
|
-
| 4 | Updated the the audit tables to use bigints
|
228
|
-
| 5 | Dropped an unnecessary index
|
229
|
-
| 6 | Enforced single scheduler job at the trigger level
|
222
|
+
| Version | Changes |
|
223
|
+
|:-------:|-------------------------------------------------------------------------------------|
|
224
|
+
| 1 | Enqueued the main Que::Scheduler. This is the job that performs the scheduling. |
|
225
|
+
| 2 | Added the audit table `que_scheduler_audit`. |
|
226
|
+
| 3 | Added the audit table `que_scheduler_audit_enqueued`. |
|
227
|
+
| 4 | Updated the the audit tables to use bigints |
|
228
|
+
| 5 | Dropped an unnecessary index |
|
229
|
+
| 6 | Enforced single scheduler job at the trigger level |
|
230
|
+
| 7 | Prevent accidental deletion of scheduler job |
|
231
|
+
| 8 | Add primary key to audit. Note, this can be a slow migration if you have many rows! |
|
230
232
|
|
231
233
|
The changes to the DB ([DDL](https://en.wikipedia.org/wiki/Data_definition_language)) are all
|
232
234
|
captured in the structure.sql so will be re-run in correctly if squashed - except for the actual
|
@@ -0,0 +1 @@
|
|
1
|
+
ALTER TABLE que_scheduler_audit_enqueued DROP COLUMN "id";
|
@@ -0,0 +1 @@
|
|
1
|
+
ALTER TABLE que_scheduler_audit_enqueued ADD COLUMN id BIGSERIAL PRIMARY KEY;
|
@@ -47,7 +47,7 @@ module Que
|
|
47
47
|
To bring the db version up to the current one required, add a migration like this. It
|
48
48
|
is cumulative, so one line is sufficient to perform all necessary steps.
|
49
49
|
|
50
|
-
class UpdateQueSchedulerSchema < ActiveRecord::Migration
|
50
|
+
class UpdateQueSchedulerSchema < ActiveRecord::Migration[6.0]
|
51
51
|
def change
|
52
52
|
Que::Scheduler::Migrations.migrate!(version: #{Que::Scheduler::Migrations::MAX_VERSION})
|
53
53
|
end
|
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: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Lascelles
|
@@ -401,6 +401,8 @@ files:
|
|
401
401
|
- lib/que/scheduler/migrations/6/up.sql
|
402
402
|
- lib/que/scheduler/migrations/7/down.sql
|
403
403
|
- lib/que/scheduler/migrations/7/up.sql
|
404
|
+
- lib/que/scheduler/migrations/8/down.sql
|
405
|
+
- lib/que/scheduler/migrations/8/up.sql
|
404
406
|
- lib/que/scheduler/schedule.rb
|
405
407
|
- lib/que/scheduler/scheduler_job.rb
|
406
408
|
- lib/que/scheduler/scheduler_job_args.rb
|