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

Kill the judging submission first with a keyboard interrupt on CLI #700

Merged
merged 1 commit into from
Jun 13, 2020

Conversation

Ninjaclasher
Copy link
Member

This is more of a QOL improvement. Currently, when there is a long running submission (e.g a submission that TLEs on every case), there is no way to abort the submission. Pressing Ctrl-C would kill the CLI, potentially losing any commands that were previously typed and had scrolled off the screen (since there is no persistent history). Thus, the only way would be to wait out the grading.

In this PR, instead of killing the CLI directly while a submission is grading, we first kill the currently grading submission if there is one.

@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2020

Codecov Report

Merging #700 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #700   +/-   ##
=======================================
  Coverage   84.68%   84.68%           
=======================================
  Files         125      125           
  Lines        4205     4205           
=======================================
  Hits         3561     3561           
  Misses        644      644           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f66008d...032d13f. Read the comment docs.

@Ninjaclasher Ninjaclasher force-pushed the cmdline-submit-abort branch from 0c6832f to 032d13f Compare June 13, 2020 20:46
Copy link
Member

@quantum5 quantum5 left a comment

Choose a reason for hiding this comment

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

Looks good. However, the history thing should also be fixed by storing history in say, ~/.dmoj_history.

@Xyene
Copy link
Member

Xyene commented Jun 13, 2020

On that note should also make readline not-optional and just include it in the requirements.

@quantum5 quantum5 merged commit 0b93701 into DMOJ:master Jun 13, 2020
@Ninjaclasher Ninjaclasher deleted the cmdline-submit-abort branch June 14, 2020 00:21
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