oioioi.zeus.handlers¶
Module Contents¶
Functions¶
|
|
|
Recipe handler that sends the job to Zeus. |
|
"Sends the job to Zeus for given |
|
|
|
Imports the results returned by Zeus. |
|
Creates or updates problem |
Attributes¶
- oioioi.zeus.handlers.submit_job(env, submission, kind)[source]¶
Recipe handler that sends the job to Zeus.
- oioioi.zeus.handlers.transfer_job(env, kind, source_code)[source]¶
“Sends the job to Zeus for given
kind.- Used
envkeys: submission_idlanguagesaved_environ_idzeus_problem_idzeus_id
- Used
- oioioi.zeus.handlers.import_results(env, **kwargs)[source]¶
Imports the results returned by Zeus.
The
env['zeus_metadata_decoder'], which is used by thisHandler, should be a path to a function which gets Zeus metadata for test (e.g. aenv['zeus_results'][0]['metadata']string) and returns a dictionary which will be a base fortestinformation (at least containing keysname,groupandmax_scoredefined as below).- Used
environkeys: zeus_results- retrieved from Zeus callbackcompilation_result- may be OK if the file compiledsuccessfully or CE otherwise.
Produced
environkeys:tests- a dictionary mapping test names into dictionaries with following keys:nametest name
kindkind of the test (EXAMPLE, NORMAL)
groupgroup the test belongs to
max_scoremaximum score the user can get for this test
exec_time_limittime limit for the test (in ms)
exec_memory_limitmemory limit for the test (in KiB)
zeus_metadataraw metadata for the test as returned by Zeus
test_results- a dictionary, mapping test names into dictionaries with the following keys:result_codetest status: OK, WA, RE, …
result_stringdetailed supervisor information (for example, where the required and returned outputs differ)
time_usedtotal time used, in milliseconds
zeus_test_resultraw result returned by Zeus
- Used
- oioioi.zeus.handlers.update_problem_tests_set(env, kind, **kwargs)[source]¶
Creates or updates problem
oioioi.programs.models.Testobjects basing onenv['tests']dict.Sends email to all admins when tests set differ.
Considers only tests with given
kind.- Used
environkeys: problem_idtestszeus_problem_idzeus_id
- Used