Commit 599be28c authored by Shinya Maeda's avatar Shinya Maeda

Simplify the comments

parent 58dc574a
...@@ -100,14 +100,11 @@ module Gitlab ...@@ -100,14 +100,11 @@ module Gitlab
def erase! def erase!
## ##
# Erase an archived traces # Erase the archived trace
# This removes both a database-row and a real file in either a file storage or a object storage
trace_artifact&.destroy! trace_artifact&.destroy!
## ##
# Erase a live trace # Erase the live trace
# Basically, jobs have _one_ of the following live traces, but it might be able to happen by a race condition
# Therefore, we remove all type of live traces.
job.trace_chunks.fast_destroy_all # Destroy chunks of a live trace 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 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 job.erase_old_trace! if job.has_old_trace? # Remove a trace in database of a live trace
......
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