feat(NetworkMapScheduler): enhance job execution logging and add force refresh option for ping and speed tests
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m44s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m44s
This commit is contained in:
@@ -514,6 +514,7 @@ async function pingViaInterface(req, res) {
|
||||
interfaceName,
|
||||
target,
|
||||
count = 5,
|
||||
forceRefresh = false,
|
||||
} = req.body || {};
|
||||
|
||||
if (!serverId) {
|
||||
@@ -528,7 +529,8 @@ async function pingViaInterface(req, res) {
|
||||
}
|
||||
const pingCacheMinutes = Math.max(0, parseInt(uiSettings.pingCacheMinutes, 10) || 0);
|
||||
const cacheKey = pingCacheMinutes > 0 ? pingCacheKey(serverId, gatewayIp, target) : null;
|
||||
if (cacheKey) {
|
||||
const skipCacheRead = forceRefresh === true;
|
||||
if (!skipCacheRead && cacheKey) {
|
||||
try {
|
||||
const data = await readS3TextObject(cacheKey).catch(() => null);
|
||||
if (data?.body) {
|
||||
|
||||
Reference in New Issue
Block a user