processed = $this->pg()->query(" delete from task_history where created < now() - interval '6 month' "); } }