Fix errors in spawned_tasks list, repo publish command, and remove dead code