Can you please provide the error and stacktrace that you receive? Also, Dagger.@spawn expects just a single function call right now (will change once I address `@spawn` has confusing move semantics · Issue #357 · JuliaParallel/Dagger.jl · GitHub), but you have println, string interpolation (which is a call to Base.string), and pwd. You should instead write this as:
f() = println("inside machine $(pwd())")
map(1:10) do i
Dagger.@spawn f()
end;