[Pulp-dev] pulp3: task - worker relationship

Jeff Ortel jortel at redhat.com
Thu Nov 17 15:03:01 UTC 2016



On 11/16/2016 05:27 PM, Sean Myers wrote:
> On 11/16/2016 05:28 PM, Michael Hrivnak wrote:
>> Options:
>> - We could set the policy to SET_NULL. When the worker entry gets deleted,
>> the task would simply lose its record of which worker it ran on.
> 
> +1 to this.
+1

> 
> Since the worker no longer exists in that scenario, I don't think we lose any
> data there, right? A reference to a nonexistent worker is as good as NULL. Do
> we need to add a task scrubber to find tasks with NULL workers and make sure
> they get reassigned? We could also use SET() here, and pass it a callable that
> sets it to an extant worker pk, but at the moment I think I prefer SET_NULL.
> 
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-dev
> 

-------------- 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/20161117/ed9e85c4/attachment.sig>


More information about the Pulp-dev mailing list