Lower poll interval for checking import status of podcast episodes

This commit is contained in:
Duncan Sommerville 2015-11-11 18:52:12 -05:00
parent c43b45a7ba
commit 8a5c25291e
3 changed files with 15 additions and 3 deletions

View file

@ -463,6 +463,9 @@ var AIRTIME = (function (AIRTIME) {
}
});
if (pendingRows.length > 0) {
// Manually trigger the Celery task to update the internal
// task reference because the upload will often finish quickly
$.get('/api/poll-celery');
// Fetch the table data if there are pending rows,
// then check if any of the pending rows have
// succeeded or failed before reloading the table.
@ -484,7 +487,7 @@ var AIRTIME = (function (AIRTIME) {
}
});
}
}, 10000); // Run every 10 seconds
}, 5000); // Run every 5 seconds
};
/**