Skip to content

Commit

Permalink
Fix cleanup_preserved_jobs_before_config pointing to config in worklo…
Browse files Browse the repository at this point in the history
…ad prune (#13)
  • Loading branch information
svanhesteren authored Jun 26, 2024
1 parent 9f63d40 commit d3e0195
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
## [0.1.8] - 2023-06-21

- Move some missed instrumentations to Gouda.instrument

## [0.1.9] - 2023-06-26

- Fix: cleanup_preserved_jobs_before in Gouda::Workload.prune now points to Gouda.config
2 changes: 1 addition & 1 deletion lib/gouda/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Gouda
VERSION = "0.1.8"
VERSION = "0.1.9"
end
2 changes: 1 addition & 1 deletion lib/gouda/workload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def self.queue_names

def self.prune
if Gouda.config.preserve_job_records
where(state: "finished").where("execution_finished_at < ?", Gouda.cleanup_preserved_jobs_before.ago).delete_all
where(state: "finished").where("execution_finished_at < ?", Gouda.config.cleanup_preserved_jobs_before.ago).delete_all
else
where(state: "finished").delete_all
end
Expand Down

0 comments on commit d3e0195

Please sign in to comment.