diff options
Diffstat (limited to 'app/models/ci/build_trace_chunk.rb')
-rw-r--r-- | app/models/ci/build_trace_chunk.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/models/ci/build_trace_chunk.rb b/app/models/ci/build_trace_chunk.rb index f44a5b804fa..79c448e5985 100644 --- a/app/models/ci/build_trace_chunk.rb +++ b/app/models/ci/build_trace_chunk.rb @@ -108,6 +108,14 @@ module Ci Ci::BuildTraceChunkFlushWorker.perform_async(id) end + def persisted? + !redis? + end + + def live? + redis? + end + private def get_data @@ -170,14 +178,6 @@ module Ci save! if changed? end - def persisted? - !redis? - end - - def live? - redis? - end - def full? size == CHUNK_SIZE end |