Change interval to 500ms

This commit is contained in:
Wenjun Ruan 2024-06-27 12:33:55 +08:00
parent 665e611943
commit 98bf1d8019
4 changed files with 7 additions and 7 deletions

View File

@ -93,8 +93,7 @@ public class ResourcesController extends BaseController {
private ResourcesService resourceService;
@Operation(summary = "queryResourceList", description = "QUERY_RESOURCE_LIST_NOTES")
@Parameters({
@Parameter(name = "type", description = "RESOURCE_TYPE", required = true, schema = @Schema(implementation = ResourceType.class))})
@Parameter(name = "type", description = "RESOURCE_TYPE", required = true, schema = @Schema(implementation = ResourceType.class))
@GetMapping(value = "/list")
@ResponseStatus(HttpStatus.OK)
@ApiException(QUERY_RESOURCES_LIST_ERROR)

View File

@ -73,7 +73,7 @@ public abstract class BaseHeartBeatTask<T extends HeartBeat> extends BaseDaemonT
try {
Thread.sleep(DEFAULT_HEARTBEAT_SCAN_INTERVAL);
} catch (InterruptedException e) {
ignoreInterruptException(e);
handleInterruptException(e);
}
}
}
@ -84,8 +84,9 @@ public abstract class BaseHeartBeatTask<T extends HeartBeat> extends BaseDaemonT
log.warn("{} finished...", threadName);
}
private void ignoreInterruptException(InterruptedException ex) {
log.warn("{} has been interrupted, but this will be ignore", threadName, ex);
private void handleInterruptException(InterruptedException ex) {
log.warn("{} has been interrupted", threadName, ex);
Thread.currentThread().interrupt();
}
public abstract T getHeartBeat();

View File

@ -80,7 +80,7 @@ final class DolphinSchedulerExtension implements BeforeAllCallback, AfterAllCall
@SuppressWarnings("UnstableApiUsage")
public void beforeAll(ExtensionContext context) throws IOException {
Awaitility.setDefaultTimeout(Duration.ofSeconds(60));
Awaitility.setDefaultPollInterval(Duration.ofMillis(100));
Awaitility.setDefaultPollInterval(Duration.ofMillis(500));
setRecordPath();

View File

@ -23,7 +23,7 @@ import org.openqa.selenium.support.ui.WebDriverWait;
public class WebDriverWaitFactory {
private static final Duration DEFAULT_INTERVAL = Duration.ofMillis(100);
private static final Duration DEFAULT_INTERVAL = Duration.ofMillis(500);
private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);