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
env
keys: submission_id
language
saved_environ_id
zeus_problem_id
zeus_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 fortest
information (at least containing keysname
,group
andmax_score
defined as below).- Used
environ
keys: zeus_results
- retrieved from Zeus callbackcompilation_result
- may be OK if the file compiledsuccessfully or CE otherwise.
Produced
environ
keys:tests
- a dictionary mapping test names into dictionaries with following keys:name
test name
kind
kind of the test (EXAMPLE, NORMAL)
group
group the test belongs to
max_score
maximum score the user can get for this test
exec_time_limit
time limit for the test (in ms)
exec_memory_limit
memory limit for the test (in KiB)
zeus_metadata
raw metadata for the test as returned by Zeus
test_results
- a dictionary, mapping test names into dictionaries with the following keys:result_code
test status: OK, WA, RE, …
result_string
detailed supervisor information (for example, where the required and returned outputs differ)
time_used
total time used, in milliseconds
zeus_test_result
raw result returned by Zeus
- Used
- oioioi.zeus.handlers.update_problem_tests_set(env, kind, **kwargs)[source]¶
Creates or updates problem
oioioi.programs.models.Test
objects basing onenv['tests']
dict.Sends email to all admins when tests set differ.
Considers only tests with given
kind
.- Used
environ
keys: problem_id
tests
zeus_problem_id
zeus_id
- Used