:py:mod:`oioioi.problems.unpackmgr` =================================== .. py:module:: oioioi.problems.unpackmgr Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: oioioi.problems.unpackmgr.unpackmgr_job Attributes ~~~~~~~~~~ .. autoapisummary:: oioioi.problems.unpackmgr.logger .. py:data:: logger .. py:function:: unpackmgr_job(env) Creates (or modifies) a :class:`~oioioi.problems.models.Problem` instance using a package file represented by a :class:`~oioioi.problems.models.ProblemPackage`. Used ``env`` keys: ``package_id``: id of the :class:`~oioioi.problems.models.ProblemPackage` instance to process ``backend_name``: problem package backend (dotted name) to be used for unpacking ``post_upload_handlers``: a list of handler functions to be called after the new problem is created Before the handlers are called, the following ``env`` keys are produced: ``job_id``: the ``Celery`` task id ``problem_id``: id of the :class:`~oioioi.problems.models.ProblemPackage` instance, which was created or modified