mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
DEV: Serialize the job parameters in sidekiq logs
Otherwise this can lead to some very large data structures when processing the logs later
This commit is contained in:
parent
1b2bd36061
commit
8b30ed5b7a
@ -26,7 +26,7 @@ module Jobs
|
||||
@data["database"] = db # DB name - multisite db name it ran on
|
||||
@data["job_name"] = job_class.name # Job Name - eg: Jobs::AboutStats
|
||||
@data["job_type"] = job_class.try(:scheduled?) ? "scheduled" : "regular" # Job Type - either s for scheduled or r for regular
|
||||
@data["opts"] = opts # Params - json encoded params for the job
|
||||
@data["opts"] = opts.to_json # Params - json encoded params for the job
|
||||
|
||||
@data["status"] = 'pending'
|
||||
@start_timestamp = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
||||
|
Loading…
Reference in New Issue
Block a user