worker_task: add getter for upid
sometimes we need the upid inside the worker itself, so give a possibilty to get it Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
cef03f4149
commit
4bd2a9e42d
@ -589,4 +589,8 @@ impl WorkerTask {
|
||||
}
|
||||
rx
|
||||
}
|
||||
|
||||
pub fn upid(&self) -> &UPID {
|
||||
&self.upid
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user