syncjob: change worker type for sync jobs
'sync' is used for manually pulling a remote datastore changing it for a scheduled sync to 'syncjob' so that we can differentiate between both types of syncs this also adds a seperate task description for it Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
268687ddf0
commit
c67b1fa72f
@ -510,7 +510,7 @@ async fn schedule_datastore_sync_jobs() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let worker_type = "sync";
|
let worker_type = "syncjob";
|
||||||
|
|
||||||
let last = match lookup_last_worker(worker_type, &job_id) {
|
let last = match lookup_last_worker(worker_type, &job_id) {
|
||||||
Ok(Some(upid)) => {
|
Ok(Some(upid)) => {
|
||||||
|
@ -62,6 +62,7 @@ Ext.define('PBS.Utils', {
|
|||||||
Proxmox.Utils.override_task_descriptions({
|
Proxmox.Utils.override_task_descriptions({
|
||||||
garbage_collection: ['Datastore', gettext('Garbage collect') ],
|
garbage_collection: ['Datastore', gettext('Garbage collect') ],
|
||||||
sync: ['Datastore', gettext('Remote Sync') ],
|
sync: ['Datastore', gettext('Remote Sync') ],
|
||||||
|
syncjob: [gettext('Sync Job'), gettext('Remote Sync') ],
|
||||||
prune: (type, id) => {
|
prune: (type, id) => {
|
||||||
return PBS.Utils.render_datastore_worker_id(id, gettext('Prune'));
|
return PBS.Utils.render_datastore_worker_id(id, gettext('Prune'));
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user