akshayrai commented on a change in pull request #4405: [TE] add a thread pool to run preview tasks URL: https://github.com/apache/incubator-pinot/pull/4405#discussion_r301309653
########## File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java ########## @@ -115,6 +119,10 @@ private static final String PROP_SESSION_KEY = "sessionKey"; private static final String PROP_PRINCIPAL_TYPE = "principalType"; private static final String PROP_SERVICE = "SERVICE"; + // 5 detection previews are running at the same time at most + private static final int PREVIEW_PARALLELISM = 5; + // max time allowed for a preview task + private static final long PREVIEW_TIMEOUT = TimeUnit.MINUTES.toMillis(5); Review comment: Can we make this configurable? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
