Add spawn attribute to run task.