forked from Proxmox/proxmox
We had two call sites deriving the directory "shard" where the task log file is actually saved to, this can lead to ugly bugs and is better done in a central single-source-of-truth way. While at it factor out the creation of the log file (and it's shard directory) to avoid crowding the WorkerTask new fn to much. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>