Skip to content

Commit c501f7a

Browse files
authored
support full exception stacks in Task error reporting (#37224)
1 parent 72c4440 commit c501f7a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/clusterserialize.jl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,6 @@ function serialize(s::ClusterSerializer, t::Task)
110110
writetag(s.io, TASK_TAG)
111111
serialize(s, t.code)
112112
serialize(s, t.storage)
113-
bt = t.backtrace
114-
if bt !== nothing
115-
if !isa(bt, Vector{Any})
116-
bt = Base.process_backtrace(bt, 100)
117-
end
118-
serialize(s, bt)
119-
end
120113
serialize(s, t._state)
121114
serialize(s, t.result)
122115
serialize(s, t.exception)
@@ -256,13 +249,7 @@ function deserialize(s::ClusterSerializer, ::Type{Task})
256249
deserialize_cycle(s, t)
257250
t.code = deserialize(s)
258251
t.storage = deserialize(s)
259-
state_or_bt = deserialize(s)
260-
if state_or_bt isa UInt8
261-
t._state = state_or_bt
262-
else
263-
t.backtrace = state_or_bt
264-
t._state = deserialize(s)
265-
end
252+
t._state = deserialize(s)::UInt8
266253
t.result = deserialize(s)
267254
t.exception = deserialize(s)
268255
t

0 commit comments

Comments
 (0)