Skip to content

Conversation

@MrSerth
Copy link
Member

@MrSerth MrSerth commented Oct 15, 2024

The previous code mostly worked but there could be cases where stopping was delayed. This is especially problematic with the reservation of runners, since they could still be reserved (internally) without a visual indicator for the learners.

The change in the SubmissionsController is optional, since a browser should also close the connection once close_client_connection is executed. However, this change might stop the runner earlier, which is especially useful in case of infinite loops.

The previous code mostly worked but there could be cases where stopping was delayed. This is especially problematic with the reservation of runners, since they could still be reserved (internally) without a visual indicator for the learners.

 The change in the SubmissionsController is optional, since a browser should also close the connection once `close_client_connection` is executed. However, this change might stop the runner earlier, which is especially useful in case of infinite loops.
@MrSerth MrSerth added bug ruby Pull requests that update Ruby code labels Oct 15, 2024
@MrSerth MrSerth requested a review from Dome-GER October 15, 2024 17:16
@MrSerth MrSerth self-assigned this Oct 15, 2024
@codecov
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.53%. Comparing base (4089e66) to head (1b61045).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
lib/runner/connection.rb 0.00% 2 Missing ⚠️
app/controllers/submissions_controller.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2605      +/-   ##
==========================================
- Coverage   69.56%   69.53%   -0.03%     
==========================================
  Files         202      202              
  Lines        6370     6372       +2     
==========================================
  Hits         4431     4431              
- Misses       1939     1941       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Dome-GER Dome-GER merged commit e3471cb into master Oct 15, 2024
9 of 10 checks passed
@Dome-GER Dome-GER deleted the stop_runner_immediately branch October 15, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants