fao89 / pulp_ansible

A Pulp plugin that manages Ansible content, i.e. roles, collections
https://pulp-ansible.readthedocs.io/en/latest/
GNU General Public License v2.0
0 stars 0 forks source link

All import tasks are assigned to the same worker #25

Open fao89 opened 2 years ago

fao89 commented 2 years ago

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.