Причина синхронизации и временная метка в логах

This commit is contained in:
2026-05-21 22:30:40 +03:00
parent d0f490a3fd
commit d3eac81660
14 changed files with 182 additions and 52 deletions

View File

@@ -73,6 +73,7 @@ class TaskOrchestrator(
val task = PipelineTask(
id = id,
title = title,
enqueuedAtMs = System.currentTimeMillis(),
dispatcher = dispatcher,
state = TaskRunState.Queued,
busyStorageUuid = busyStorageUuid,
@@ -104,6 +105,10 @@ class TaskOrchestrator(
}
}
override fun appendPipelineLog(level: TaskLogLevel, key: TaskLogKey) {
appendLogLine(level, message = "", logKey = key)
}
private fun replaceTask(id: TaskId, fn: (PipelineTask) -> PipelineTask) {
synchronized(tasksById) {
val cur = tasksById[id] ?: return