]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
api2/admin/datastore: start the garbage_collection task with our helper
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 2 Nov 2020 11:34:38 +0000 (12:34 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Nov 2020 20:08:38 +0000 (21:08 +0100)
commit4fdf5ddf5bb74968a32332b41a69b62df1be9624
treeed76d7dd3627e12a63ea3afa7f202f9af97f032b
parentc724f658055485b1319134520470acff1bdcbaf2
api2/admin/datastore: start the garbage_collection task with our helper

instead of manually, this has the advantage that we now set
the jobstate correctly and can return with an error if it is
currently running (instead of failing in the task)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/admin/datastore.rs