[Pulp-dev] pulp3: task - worker relationship
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:
>> - 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.
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 847 bytes
Desc: OpenPGP digital signature
More information about the Pulp-dev