feat: publish fatal progress after worker crash
This commit is contained in:
parent
c213e0e880
commit
17c2e6d529
1 changed files with 1 additions and 0 deletions
|
|
@ -260,6 +260,7 @@ section ServerM
|
|||
-- Worker crashed
|
||||
fw.errorPendingRequests o (if exitCode = 1 then ErrorCode.workerExited else ErrorCode.workerCrashed)
|
||||
s!"Server process for {fw.doc.meta.uri} crashed, {if exitCode = 1 then "see stderr for exception" else "likely due to a stack overflow or a bug"}."
|
||||
publishProgressAtPos fw.doc.meta 0 o (kind := LeanFileProgressKind.fatalError)
|
||||
return WorkerEvent.crashed err
|
||||
loop
|
||||
let task ← IO.asTask (loop $ ←read) Task.Priority.dedicated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue