Skip to content

Put the try-catch inside the loop. And implement incremental waiting strategy. #13

@ashajjar

Description

@ashajjar

try {
Thread.sleep(INITIAL_WAIT_TIME);
//noinspection InfiniteLoopStatement
while (true) {
checkReposForOpenPullRequests();
//noinspection BusyWait
Thread.sleep(ONE_MINUTE);
}
} catch (Throwable e) {
logger.error(e);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions