[Pulp-dev] pulp3: task - worker relationship
sean.myers at redhat.com
Wed Nov 16 23:27:12 UTC 2016
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.
More information about the Pulp-dev