Task `import_collection` now uses resource reservation. It reserves two resources: an artifact and a related repository.
When scheduling a task, the resource manager assigns task that has a resource reservations on a worker that runs a task with any of requested reservations. This causes the following side effect:
Because repository is a global object, all tasks related to that repository are always run sequentially due to being assigned on the same worker.
Author: osapryki (osapryki)
Redmine Issue: 5674, https://pulp.plan.io/issues/5674
Task `import_collection` now uses resource reservation. It reserves two resources: an artifact and a related repository.
When scheduling a task, the resource manager assigns task that has a resource reservations on a worker that runs a task with any of requested reservations. This causes the following side effect:
Because repository is a global object, all tasks related to that repository are always run sequentially due to being assigned on the same worker.