Creates a decorator to ensure that the task isn’t executed in parallel
task_name – The task’s unique name
A decorator