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

executor: use a timeout for pod creation #343

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

alessandro-sorint
Copy link
Contributor

@alessandro-sorint alessandro-sorint commented Jun 6, 2022

FIX #330

go.mod: updated k8s.io and dependencies to use context in k8s client
executor: added a timeout to the context used in NewPod

@alessandro-sorint
Copy link
Contributor Author

@sgotti can you restart and do the review please?

Copy link
Member

@sgotti sgotti left a comment

Choose a reason for hiding this comment

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

@alessandro-sorint Thanks for the PR. Some comments inline.

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
internal/services/executor/executor.go Outdated Show resolved Hide resolved
internal/services/executor/executor.go Outdated Show resolved Hide resolved
internal/services/executor/executor.go Outdated Show resolved Hide resolved
@alessandro-sorint alessandro-sorint force-pushed the tasksetup-timeout branch 2 times, most recently from 8e8a4df to d75e328 Compare June 10, 2022 09:24
@alessandro-sorint alessandro-sorint requested a review from sgotti June 10, 2022 09:24
@sgotti sgotti changed the title Executor: added context timeout in pod creation executor: use a timeout for pod creation Jun 10, 2022
Copy link
Member

@sgotti sgotti left a comment

Choose a reason for hiding this comment

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

Please rename to commit to executor: use a timeout for pod creation

internal/services/executor/executor.go Outdated Show resolved Hide resolved
internal/services/executor/executor.go Outdated Show resolved Hide resolved
@sgotti sgotti merged commit 5560502 into agola-io:master Jun 12, 2022
@alessandro-sorint alessandro-sorint deleted the tasksetup-timeout branch June 13, 2022 07:15
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.

Executor: delete pod when tasksetup fail
2 participants