mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FEATURE: store history for scheduled job execution
This commit is contained in:
14
db/migrate/20160530003739_create_scheduler_stats.rb
Normal file
14
db/migrate/20160530003739_create_scheduler_stats.rb
Normal file
@ -0,0 +1,14 @@
|
||||
class CreateSchedulerStats < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :scheduler_stats do |t|
|
||||
t.string :name, null: false
|
||||
t.string :hostname, null: false
|
||||
t.integer :pid, null: false
|
||||
t.integer :duration_ms
|
||||
t.integer :live_slots_start
|
||||
t.integer :live_slots_finish
|
||||
t.datetime :started_at, null: false
|
||||
t.boolean :success
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user