oioioi.problems.unpackmgr

Module Contents

Functions

unpackmgr_job(env)

Creates (or modifies) a Problem

Attributes

oioioi.problems.unpackmgr.logger[source]
oioioi.problems.unpackmgr.unpackmgr_job(env)[source]

Creates (or modifies) a Problem instance using a package file represented by a ProblemPackage.

Used env keys:

package_id: id of the 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 ProblemPackage instance, which was created or modified