Skip to content

Commit 09eabe2

Browse files
committed
Allow specifying queue, priority, command and description for recurring tasks
These will be used later on.
1 parent 04a1d93 commit 09eabe2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

db/migrate/20240719134516_create_recurring_tasks.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ def change
33
create_table :solid_queue_recurring_tasks do |t|
44
t.string :key, null: false, index: { unique: true }
55
t.string :schedule, null: false
6-
t.string :class_name, null: false
6+
t.string :command, limit: 2048
7+
t.string :class_name
78
t.text :arguments
89

10+
t.string :queue_name
11+
t.integer :priority, default: 0
12+
913
t.boolean :static, default: true, index: true
1014

15+
t.text :description
16+
1117
t.timestamps
1218
end
1319
end

test/dummy/db/schema.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@
104104
create_table "solid_queue_recurring_tasks", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
105105
t.string "key", null: false
106106
t.string "schedule", null: false
107-
t.string "class_name", null: false
107+
t.string "command", limit: 2048
108+
t.string "class_name"
108109
t.text "arguments"
110+
t.string "queue_name"
111+
t.integer "priority", default: 0
109112
t.boolean "static", default: true
113+
t.text "description"
110114
t.datetime "created_at", null: false
111115
t.datetime "updated_at", null: false
112116
t.index ["key"], name: "index_solid_queue_recurring_tasks_on_key", unique: true

0 commit comments

Comments
 (0)