Skip to content

Conversation

@anthonygego
Copy link
Member

This PR addresses issue #887 in which SSH jobs can wait indefinitely in the queue if no agent has SSH capability enabled because jobs are added based on the environment availability and removed based on what agents are capable.

It replaces the ssh_allowed environment parameter opt-in by multiple environment types. This ensures the job will always be treated as it won't be sent to the queue if the environment type has not been announced. It also removes any SSH awareness from the queue and keep that concept in the specific environment code.

Another solution would have been to make the client code aware of SSH and prevent the job from getting in the queue, but that would have been heavier in terms of lines of code and would have introduced agent specificities into the common code.

@anthonygego anthonygego requested a review from Drumor April 20, 2023 09:23
@nrybowski
Copy link
Member

LGTM

Copy link
Collaborator

@Drumor Drumor left a comment

Choose a reason for hiding this comment

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

LGTM

@Drumor Drumor merged commit b3f66e3 into master Apr 20, 2023
@Drumor Drumor deleted the fix_887 branch April 20, 2023 12:42
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.

4 participants