Passing ARGS to multiple workers

As described in the manual, @everywhere does not capture variables, so you need to interpolate them:

@everywhere model=$(ARGS[1])
2 Likes