lib/good_job/cli.rb in good_job-2.14.4 vs lib/good_job/cli.rb in good_job-2.15.0
- old
+ new
@@ -118,28 +118,28 @@
end
default_task :start
# @!macro thor.desc
- desc :cleanup_preserved_jobs, "Deletes preserved job records."
+ desc :cleanup_preserved_jobs, "Destroys preserved job records."
long_desc <<~DESCRIPTION
- Deletes preserved job records.
+ Destroys preserved job records.
- By default, GoodJob deletes job records when the job is performed and this
+ By default, GoodJob destroys job records when the job is performed and this
command is not necessary.
However, when `GoodJob.preserve_job_records = true`, the jobs will be
preserved in the database. This is useful when wanting to analyze or
inspect job performance.
If you are preserving job records this way, use this command regularly
- to delete old records and preserve space in your database.
+ to destroy old records and preserve space in your database.
DESCRIPTION
method_option :before_seconds_ago,
type: :numeric,
banner: 'SECONDS',
- desc: "Delete records finished more than this many seconds ago (env var: GOOD_JOB_CLEANUP_PRESERVED_JOBS_BEFORE_SECONDS_AGO, default: 86400)"
+ desc: "Destroy records finished more than this many seconds ago (env var: GOOD_JOB_CLEANUP_PRESERVED_JOBS_BEFORE_SECONDS_AGO, default: 86400)"
def cleanup_preserved_jobs
set_up_application!
configuration = GoodJob::Configuration.new(options)