« Previous | Next » 

Revision ddfc4136

Added by Partha Aji over 8 years ago

Fixes #13284 - Enables Taskgroups for Applicablity

The regenerate applicable errata call for a repository can return
either a Task Group or a list of spawned tasks. This commit enables
the use of that.
This is an important change in pulp 2.8.
Look at
for more info.

View differences:

# Regenerate the applicability for consumers bound to a given set of repositories
# @param [String, Array] ids array of repo ids
# @param [boolean] parallel when true run the regeneration in parallel and return a task group
# tracking the summary,
# when false run this operation serially and return a list of
# spawned tasks that are to be tracked separately.
# False is the default option.
# @return [RestClient::Response]
def regenerate_applicability_by_ids(ids)
def regenerate_applicability_by_ids(ids, parallel = false)
criteria = {
'parallel' => parallel,
'repo_criteria' => { 'filters' => { 'id' => { '$in' => ids } } }

Also available in: Unified diff