diff --git a/internal/delivery/http/handler.go b/internal/delivery/http/handler.go index 0a78a88..e2bf5ea 100644 --- a/internal/delivery/http/handler.go +++ b/internal/delivery/http/handler.go @@ -21,7 +21,7 @@ import ( ) const ( - taskTimeout = 30 * time.Second + taskTimeout = 45 * time.Second minLifetime = taskTimeout maxLifetime = 24 * time.Hour ) diff --git a/internal/extractors/pwextractor/pwextractor.go b/internal/extractors/pwextractor/pwextractor.go index 087873f..6b0bae4 100644 --- a/internal/extractors/pwextractor/pwextractor.go +++ b/internal/extractors/pwextractor/pwextractor.go @@ -14,11 +14,10 @@ import ( // Timeouts var ( - defTimeout = "100ms" + defTimeout = "50ms" defOptInText = playwright.LocatorInnerTextOptions{Timeout: pwDuration(defTimeout)} defOptTextCon = playwright.LocatorTextContentOptions{Timeout: pwDuration(defTimeout)} defOptAttr = playwright.LocatorGetAttributeOptions{Timeout: pwDuration(defTimeout)} - defOptEval = playwright.LocatorEvaluateOptions{Timeout: pwDuration(defTimeout)} ) var userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"