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

Exclusively lock Runners during code executions #1982

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Conversation

MrSerth
Copy link
Member

@MrSerth MrSerth commented Oct 29, 2023

Previously, the same runner could be used multiple times with different submissions simultaneously. This, however, yielded errors, for example when one submission time oud (causing the running to be deleted) while another submission was still executed.

Admin actions, such as the shell, can be still executed regardless of any other code execution.

Fixes CODEOCEAN-HG
Fixes openHPI/poseidon#423

So far, a programming group is always considered to be a learner. While we could, technically, consider it to be a teacher or an admin if all members have this role, this behaviour might have unintended side effects.
`node.parents` is not returning the parent nodes in a fixed order. Hence, we cannot use it but must travers the tree ourselves.
Previously, the same runner could be used multiple times with different submissions simultaneously. This, however, yielded errors, for example when one submission time oud (causing the running to be deleted) while another submission was still executed.

Admin actions, such as the shell, can be still executed regardless of any other code execution.

Fixes CODEOCEAN-HG
Fixes openHPI/poseidon#423
@MrSerth MrSerth added bug enhancement ruby Pull requests that update Ruby code labels Oct 29, 2023
@MrSerth MrSerth requested a review from mpass99 October 29, 2023 22:33
@MrSerth MrSerth self-assigned this Oct 29, 2023
Copy link
Contributor

@mpass99 mpass99 left a comment

Choose a reason for hiding this comment

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

Nice, It's a great control mechanism!

app/controllers/live_streams_controller.rb Show resolved Hide resolved
config/locales/de.yml Show resolved Hide resolved
@mpass99 mpass99 self-requested a review October 31, 2023 11:31
@MrSerth MrSerth merged commit 411eb0b into master Oct 31, 2023
7 of 8 checks passed
@MrSerth MrSerth deleted the runner_in_use branch October 31, 2023 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The allocation stopped as expected
2 participants