Commit 0b0d4efa authored by Shinya Maeda's avatar Shinya Maeda

Invalidate memoization after its erased

parent 599be28c
......@@ -108,6 +108,8 @@ module Gitlab
job.trace_chunks.fast_destroy_all # Destroy chunks of a live trace
FileUtils.rm_f(current_path) if current_path # Remove a trace file of a live trace
job.erase_old_trace! if job.has_old_trace? # Remove a trace in database of a live trace
ensure
@current_path = nil
end
def archive!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment