Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a watcher to monitor pod status while launching the agent #423

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Feb 8, 2019

Replaces the active wait by a proper watcher.

Submitting this to get the testing to run.

this.podStatus = pod.getStatus();
switch (action) {
case MODIFIED:
if (areAllContainersRunning(pod)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to check for terminated pods? otherwise if pod fails you will wait until the timeout instead of failing early

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@carlossg carlossg merged commit bd645f8 into jenkinsci:master Feb 18, 2019
@Vlatombe Vlatombe deleted the launcher_watcher branch March 21, 2019 14:23
// otherwise this method keeps being called multiple times
List<String> validStates = ImmutableList.of("Running");

int waitForPodSec = cloud.getWaitForPodSec().intValue();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR seems to have removed the one usage of a field introduced in #398 without removing the field itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants