Actions
Story #4331
closedAs a task writer, I can lock on an arbitrary string
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Currently, the tasking system only lets you lock on individual resources or a list of resources[0] which it then converts to urls[1]. However, it needs to be able to also accept a string or list of strings.
An example use case is where we need to lock on all distributions (present and future), in which case we would lock on "/pulp/api/v3/distributions/" or something similar.
[0] https://github.com/pulp/pulp/blob/331e58741fdb94d28582ae8b3f4c5a13a6bd6d55/pulpcore/tasking/tasks.py#L147
[1] https://github.com/pulp/pulp/blob/331e58741fdb94d28582ae8b3f4c5a13a6bd6d55/pulpcore/tasking/tasks.py#L180
Related issues
Actions
Support resource URLs in enqueue_with_reservation(). closes #4331