Open oliver-sanders opened 3 months ago
A PbTaskProxy
was not found in the store despite the task ID being added to self.all_task_pool
Do we have a copy of this workflow?
Yes, but it's non-trivial, will PM you.
I had a quick go at reproducing using a copy of the workflow in sim mode; no luck.
A
PbTaskProxy
was not found in the store despite the task ID being added toself.all_task_pool
I'm not sure how this happens, or what should be done about it
I'm not entirely sure why it's happening, and if I can't reproduce it, it's hard to pinpoint...
The self.all_task_pool
is created by the task pool:
https://github.com/cylc/cylc-flow/blob/caa0466ab5c8c8d0fd16214b656409d62b43d6f6/cylc/flow/task_pool.py#L235-L250
So can only happen here if the data_store_mgr.increment_graph_window
doesn't create it .. (which can only happen if it's already in the store)
and removed by:
https://github.com/cylc/cylc-flow/blob/caa0466ab5c8c8d0fd16214b656409d62b43d6f6/cylc/flow/task_pool.py#L815-L869
(if the try/except is triggered then it shouldn't be removed from both the store and self.all_task_pool
)
And the window resize happens before any pruning.
One thing we can say:
TaskPool
then it should be in both self.all_task_pool
and the data-store.TaskPool
then it shouldn't be in self.all_task_pool
..So we can put a workaround it if needed .. but yeah doesn't properly "solve" the issue..
It cannot happen due to reload .. because all the data-store attributes are reset (including all_task_pool
):
# Reset attributes/data-store on reload:
if reloaded:
self.__init__(self.schd, self.n_edge_distance)
Spotted in the wild:
There was no previous set_graph_window_extent command so it must have been 1 before.