-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
188 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sUaIU6RcjkR11ZzOoIvOIH6aeDUZBRMHK5Hqtnt3fzbn1CIwe6YpNHbRqyiK/LYzQdJOJfVvl8JWbnInjp/m86YqLqphp6RSNxqFyZ+LBxCLmFU5cjIkOOgNo9Dhdd4R4RqsRPWKJzRaoH2cIvYCExn3sxa/cvLJbCUQ/VdcPlHexXrJn+9kxeONzCoDuXMKrGZitLI39gau3lMEDXMiFkD70YUow1E8N8i9u4Uu/UsxhF8+zJMy/VGGGL3kyeg5iR6MsOnBB3KV02M9DIs6dlHdwJ1gKHSuRbuEQo1eS61ugAi6Gy5eVsjgmI+EUMnR1LwVXqRAGVrhoRCwHFuePKdrjbvuJ0AlBetA/ZTte5PHcBb31UUDoZco6lgtVdIrhZ71KxLWYqVjXXKayRjR7l27UyzyOSXVhHC4LKO8G+J/6uHEhUOJAknfpS+VASImQTF0tqNZr3nzR5s0+MH9FG1YrL4h6oBRkMOmWOejC65hs34ksWG83XBdidilAeIwZLFlg1JZL+fVI21o3qxbIA2NXrgdVI3UY1ecU4817S3yvUQqDxdaUDShHeuHv9PXzLGIogunTMZgV9euiZFUaFzb1w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h4FU8PmMKtfKnbc6an0pknO52PzvR+m8pLN0FFOBGInilvyd/7eZEfRp9gYTwE4GgyROAcwfX2z60cDbqyZY8C3wI0lHp2kkm3O62kNO4KnZjiUBikHxLj1rCCyYNn7Q+3Y7+zmKiH8w98Yp9gHdkHUojUhlZaoENvZXEPyw+2544tCcPieArcnZ83HGVwC6kdTdgzlJYUJ4xzi3SKHuJ7Kwjh4OoL3xJ6+wsZf+7VsXvfFdKsLEmadxgKYZ793RQQOwBLaNqxAd6T5Z2PUayhTXfpti83BpkT0qmH5ddDmMSW8sVgiY0lz1fiMVRkrsMVasGd4=--vVO53cgf2j5u6ctd--jxW9FDy+n0r4EXc4nlWOgQ== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9ytiJpAK0kCF8NSBuhnCLM4go6PLgkdJdrd5fW0L+OgoplHKXiSRvGFHuyuJITPvQsYiXO/eVtHWVAgQvA9S4B/BjPabYatx8H+/BZRZiHQ93Yenk6RllFNdA8z6nGKs/elg7Zopbs17kde0hseX6QyicZ/SzOi0cfD+kzQU9gOU8dlWJZu/qc+kVSJUc+k249B3E4kYrxHNTjNXHZVgJWb/xNhXaI01CS/L9BSAIvGnX6UVHfUaIuvMz3i+5VdvnIpAnqirbtSbfFfjgTTYPVTCMi6l6qeakOzgIotTwg/6500Qj443dqSvh0SBld6dbmHGbRhpCfPTF8+77CA6Ai33f7soUQG3ihv3poVJPykUZSjIWrK8fMYNvKfGFyI8LBZa1ypl9rYV4+H0ivy2LMzWSzvWawNvwQLF1eSOyglbFAowcpvkcAdz4KOM3aGXWtGLtRWjDN5BizRMSuKYzxISe9ggIthiIyGx2bDcL6/1K+NFLp1JeuofHf2S08rukBchVXQXhQtKg/BvQUFudKZDztLPKOaAutOyUnFhzaflbECHC6j7Rsq4DvWCBYJdDWP/EmtT1Uttg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wzH/nl/+2SqfriASL3BLK0y/dHg7tKap4Ssvby7Kw8bxpS5lAuj4o+iyR0j9ftBH2pmct0PTn2C2cnwPmYM0iHAfI3AyddVBQDHuk5E8cjQwQhqMR45hXF8lL94lJf97isojwQpJrRwurMVybmSbWL8ziuMp2hNROFkeugiFpNqs3UB6IXqioFfsDIvi9957KkoUZhS2pSrLmGOuQM2TH5dsPsuM0vDOIUStTj5yk5EfLRpEZymfFZ7A5Q127vJvFLnTqx0OVxWX1NsSs4xiOK1cVBjFr3pteqyi2ocMF2A1b1GuGVQBAbBC3/2zHI3M+2eKOPxKmg7r8C20vzrwd+0CA56+KO5JNRZpni9Ku9trgal1NQQnhHHQTLx5vtD+MOz3bFMB4sD3hiAvR7Y1h2ZX/QFTT+2ceqbcEXvFNT6uTDqYzi7EWxZ2kBUPOvKaZEFODexsve+AoSNSEEu4/YpCNeFWCpaR7r9sT87j1RppcR3ouHMz/WW1+y8o41T0HjrLnyzDDM1/2wFi9GhQHd7oCNAsH9jfKttHLS3eJmAk6f0Ks1+6pltC3D22yrk4Tkj5UwqXJwaUEbDqcz/trxMvA0Rvdpyja4CPa6wqsiaWAob7lg4UFA60v3qlPEzEUm8Fntj8QEt4y5RBHQiSTl6WVujHxfr1EtH3VSMJJzJpDfNRt8bBLpREifDyF9GwqemX0lobCsTcH9gqlJe8ICFqokXVdW+GYDUyzQY4BhpdoXfmnyuMYzeSEYEl+kyOElESoGJKg+B7zo7AXzKawOXD9v+IMlIuDQykgfPMBJc6YUtThC+AMOMcRhSdmFNXD1/hCD7oRFmsSc0UQOj43fdJADGI9SPQcuIASqEOvS1EaWV59mERGZMjLuthdv8O9vxiw2Gut3/GxA2v3DWWYU6k8PDPW--97xj7tCrmDd4BQLw--LC2NEtbYim6pQWNSdjyfZw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Rails.application.configure do | ||
config.good_job.enable_cron = true | ||
config.good_job.cron = Rails.application.config_for(:schedule) | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# frozen_string_literal: true | ||
|
||
class CreateGoodJobs < ActiveRecord::Migration[7.1] | ||
def change | ||
# Uncomment for Postgres v12 or earlier to enable gen_random_uuid() support | ||
# enable_extension 'pgcrypto' | ||
|
||
create_table :good_jobs, id: :uuid do |t| | ||
t.text :queue_name | ||
t.integer :priority | ||
t.jsonb :serialized_params | ||
t.datetime :scheduled_at | ||
t.datetime :performed_at | ||
t.datetime :finished_at | ||
t.text :error | ||
|
||
t.timestamps | ||
|
||
t.uuid :active_job_id | ||
t.text :concurrency_key | ||
t.text :cron_key | ||
t.uuid :retried_good_job_id | ||
t.datetime :cron_at | ||
|
||
t.uuid :batch_id | ||
t.uuid :batch_callback_id | ||
|
||
t.boolean :is_discrete | ||
t.integer :executions_count | ||
t.text :job_class | ||
t.integer :error_event, limit: 2 | ||
end | ||
|
||
create_table :good_job_batches, id: :uuid do |t| | ||
t.timestamps | ||
t.text :description | ||
t.jsonb :serialized_properties | ||
t.text :on_finish | ||
t.text :on_success | ||
t.text :on_discard | ||
t.text :callback_queue_name | ||
t.integer :callback_priority | ||
t.datetime :enqueued_at | ||
t.datetime :discarded_at | ||
t.datetime :finished_at | ||
end | ||
|
||
create_table :good_job_executions, id: :uuid do |t| | ||
t.timestamps | ||
|
||
t.uuid :active_job_id, null: false | ||
t.text :job_class | ||
t.text :queue_name | ||
t.jsonb :serialized_params | ||
t.datetime :scheduled_at | ||
t.datetime :finished_at | ||
t.text :error | ||
t.integer :error_event, limit: 2 | ||
end | ||
|
||
create_table :good_job_processes, id: :uuid do |t| | ||
t.timestamps | ||
t.jsonb :state | ||
end | ||
|
||
create_table :good_job_settings, id: :uuid do |t| | ||
t.timestamps | ||
t.text :key | ||
t.jsonb :value | ||
t.index :key, unique: true | ||
end | ||
|
||
add_index :good_jobs, :scheduled_at, where: "(finished_at IS NULL)", name: "index_good_jobs_on_scheduled_at" | ||
add_index :good_jobs, [:queue_name, :scheduled_at], where: "(finished_at IS NULL)", name: :index_good_jobs_on_queue_name_and_scheduled_at | ||
add_index :good_jobs, [:active_job_id, :created_at], name: :index_good_jobs_on_active_job_id_and_created_at | ||
add_index :good_jobs, :concurrency_key, where: "(finished_at IS NULL)", name: :index_good_jobs_on_concurrency_key_when_unfinished | ||
add_index :good_jobs, [:cron_key, :created_at], name: :index_good_jobs_on_cron_key_and_created_at | ||
add_index :good_jobs, [:cron_key, :cron_at], name: :index_good_jobs_on_cron_key_and_cron_at, unique: true | ||
add_index :good_jobs, [:active_job_id], name: :index_good_jobs_on_active_job_id | ||
add_index :good_jobs, [:finished_at], where: "retried_good_job_id IS NULL AND finished_at IS NOT NULL", name: :index_good_jobs_jobs_on_finished_at | ||
add_index :good_jobs, [:priority, :created_at], order: { priority: "DESC NULLS LAST", created_at: :asc }, | ||
where: "finished_at IS NULL", name: :index_good_jobs_jobs_on_priority_created_at_when_unfinished | ||
add_index :good_jobs, [:batch_id], where: "batch_id IS NOT NULL" | ||
add_index :good_jobs, [:batch_callback_id], where: "batch_callback_id IS NOT NULL" | ||
|
||
add_index :good_job_executions, [:active_job_id, :created_at], name: :index_good_job_executions_on_active_job_id_and_created_at | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters