prevent duplicate tasks from being created