Files
server/opt/psa/admin/htdocs/modules/panel-migrator/scripts/run-queue-periodically.js
2026-01-07 20:52:11 +01:00

19 lines
641 B
JavaScript

// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.
Jsw.onReady(function() {
// Start queue runner periodically in case in terminated for some reason, so
// even if it failed or there is race condition - customer will get migration
// running again by just visiting migration status page
function periodicRunQueue() {
new Ajax.Request(URL_RUN_QUEUE, {
onComplete: function (response) {
setTimeout(
function () { periodicRunQueue() },
RUN_QUEUE_PERIOD
);
}
})
}
periodicRunQueue();
});