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

Pressing Ctrl-C on cf submit disables recurring status updates? #13

Closed
GaurangTandon opened this issue Jun 9, 2019 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@GaurangTandon
Copy link
Contributor

I have noticed that ever since yesterday, when I had pressed Ctrl-C to prevent an accidental submission, I have not been getting recurrent updates to the status text. So, the text of cf submit remains stuck at the following even after one or two minutes when it has changed to Accepted on Codeforces:

Submit 1176 C GNU G++14 6.4.0
Current user: sigma_g
Submitted
      #: 55360388
   when: 01:09:46
   prob: C - Lose it!
   lang: GNU C++14
 status: Running on test 1
   time: 0 ms
 memory: 0 B

I have tested this during and outside a contest, my solution took hardly took a half a minute to judge, so I am really not sure what's the issue here. I am using v0.5.3

@xalanq
Copy link
Owner

xalanq commented Jun 9, 2019

If you press Ctrl-C after you submitting, it's impossible to undo your submission. Because it have been submitted to the Codeforces's server. But in your terminal, Ctrl-C kill the cf process, so it can not update the status as usual.

If you want to see the status of your wrong submission, just use cf watch, it can update the status automatically too.

BTW, if you press Ctrl-C very fast, the code could not be submitted to the server. :)

@GaurangTandon
Copy link
Contributor Author

BTW, if you press Ctrl-C very fast, the code could not be submitted to the server. :)

I am sorry if I was unclear.

In the very first cf submit, I did press Ctrl-C before the text Submitted appeared, so my code was indeed not submitted.

However, in subsequent submissions, i.e. later calls to cf submit, where I actually wish to submit code and watch its status, I am able to submit code, but its status does not get updated, instead it's stuck at the text above as I showed.

I understand cf watch can update status too, however, it seems I broke cf submit, with no other way to fix it other than reinstalling cf? :(

@xalanq
Copy link
Owner

xalanq commented Jun 10, 2019

I have found that bug. I tried to submit the code in Codeforces website, the status stucks too. I'm considering remove websocket...

@xalanq xalanq closed this as completed in 654dceb Jun 10, 2019
@GaurangTandon
Copy link
Contributor Author

Oh, I'll miss those continuous updates, but thanks anyway :)

@xalanq xalanq added the bug Something isn't working label Jul 18, 2019
xalanq added a commit that referenced this issue Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants