aboutsummaryrefslogtreecommitdiff
path: root/lib/tasks/ecs_garbage_collect_sub_participants.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/ecs_garbage_collect_sub_participants.rake')
-rw-r--r--lib/tasks/ecs_garbage_collect_sub_participants.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/ecs_garbage_collect_sub_participants.rake b/lib/tasks/ecs_garbage_collect_sub_participants.rake
index eba5971..b20c50b 100644
--- a/lib/tasks/ecs_garbage_collect_sub_participants.rake
+++ b/lib/tasks/ecs_garbage_collect_sub_participants.rake
@@ -1,7 +1,7 @@
namespace :ecs do
desc "Delete outtimed subparticipants."
task :gc_sub_participants => :environment do
- ttl= 10.days.ago
+ ttl= 2.days.ago
num= 0
Participant.only_subparticipants.each do |p|
if p.created_at <= ttl
@@ -9,7 +9,7 @@ namespace :ecs do
num+=1
end
end
- txt= "Number of deleted subparticipants: #{num}"
+ txt= "gc_sub_participants: Number of deleted subparticipants: #{num}"
puts txt
RAILS_DEFAULT_LOGGER.info txt
end