I don't get an error messages after a task/ thread failed

Thanks for that code snippet. I’m not sure this way of using @error is the ideal, it doesn’t seem to nicely print the backtrace. I’ve modified this code like this:

macro my_async(ex)
    quote
        Threads.@spawn try
            $(esc(ex))
        catch e
            @error "Exception in task" exception=(e, catch_backtrace())
        end
    end
end