fix time search
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m16s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m16s
This commit is contained in:
parent
060d3a726f
commit
1f3a955bfb
@ -1,7 +1,6 @@
|
|||||||
"""Volcano Engine TOS file upload utility using official TOS SDK."""
|
"""Volcano Engine TOS file upload utility using official TOS SDK."""
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
import tos
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
@ -17,6 +16,7 @@ _client = None
|
|||||||
|
|
||||||
|
|
||||||
def get_tos_client():
|
def get_tos_client():
|
||||||
|
import tos
|
||||||
global _client
|
global _client
|
||||||
if _client is None:
|
if _client is None:
|
||||||
endpoint = settings.TOS_ENDPOINT.replace('https://', '').replace('http://', '')
|
endpoint = settings.TOS_ENDPOINT.replace('https://', '').replace('http://', '')
|
||||||
|
|||||||
@ -81,7 +81,7 @@ function startPolling(taskId: string, frontendId: string) {
|
|||||||
} catch {
|
} catch {
|
||||||
// Silently continue polling on error
|
// Silently continue polling on error
|
||||||
}
|
}
|
||||||
}, 5000);
|
}, 3 * 60 * 1000); // 3 minutes
|
||||||
|
|
||||||
pollTimers.set(frontendId, timer);
|
pollTimers.set(frontendId, timer);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user