Initialize the task for a list of components. Previously queued tasks will continue to process. Returns the unique ID of the task that will be sent with the OnCompletion callback, or 0 if the request was invalid or there were no valid primitives to check.