I know it’s not the prettiest but here’s my solution with the help from @kristoffer.carlsson and @pfitzseb. Thank you!
macro my_async(ex)
quote
@async try
$(esc(ex))
catch e
@error "Task failed" exception=(e, catch_backtrace())
rethrow()
end
end
end