Task queue with deduplication