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

checking_error still used while it shouldn't #474

Open
maikia opened this issue Nov 24, 2020 · 1 comment
Open

checking_error still used while it shouldn't #474

maikia opened this issue Nov 24, 2020 · 1 comment

Comments

@maikia
Copy link
Contributor

maikia commented Nov 24, 2020

The dispatcher sometimes sets the checking_error:

ie:

set_submission_state(session, submission_id, 'checking_error')

this should no longer be used:

'checking_error', # not used, checking is part of the workflow now

It is also quite confusing for the challenge participant.

Participants might find something like this under my submissions tab, under the errors:

image

While the link to the training_error leads to the information about the python error, the checking_error is an error coming from sending submission (ie, problem with the connection, problem with setting up an instance etc). However the participant does not receive any information about the nature of the problem:

image

This is confusing.

@rth
Copy link
Collaborator

rth commented Nov 24, 2020

Maybe we can create an enum with all valid states, and use it in all workers? As right now we use states as string, and have this issue that state we compare against can have typos (#469) or have deprecated states, which is hard to detect.

With an enum we would be able to detect such issues with mypy I think.

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

No branches or pull requests

2 participants