[Pulp-dev] Task tagging in Pulp 3
Jeff Ortel
jortel at redhat.com
Wed Nov 8 13:37:28 UTC 2017
On 11/07/2017 03:09 PM, Michael Hrivnak wrote:
>
>
> Proposal 2
> ---
>
> We could keep the TaskTag relationship (perhaps even rename it to TaskResource) and we could add a field
> to indicate the nature of the relationship between task and resource (e.g. created, updated, etc). This
> field could not only capture what TaskTag is currently used for but also stuff like created resources
> (e.g. publications). We could also have a field to indicate which task resources are locked (e.g. is_locked).
>
>
> That's very interesting. I like the idea of RESTful references to resources that get used, and adding a
> qualifier for the type of relationship (created, read, locked, deleted, etc) could be very useful.
>
> If we used strong relationships instead of a string field to identify reserved resources, one thing we would
> lose is the ability to lock on something more abstract than a resource. We've done that in the past, but I
> don't think anyone's loved it, so maybe we don't need it. As an example, if we want only one orphan-purge task
> to run at a time, we can reserve a resource named "orphan-removal". We did this for applicability calculation
> for some time in Pulp 2 when there were safety questions about running them concurrently.
Agreed. I like proposal #2 but without the "locked" relationship.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 847 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20171108/338eff7d/attachment.sig>
More information about the Pulp-dev
mailing list