Home | Trees | Indices | Help |
|
---|
|
object --+ | base.structure.StructureBase --+ | object --+ | | | base.common.Parser --+ | base.structure.ParseableStructure --+ | base.structure.Structure --+ | object --+ | | | base.structure.RestrictionMixin --+ | procdef.ProcDef --+ | procdef.ProcApp --+ | CronJob
Python code for use within execute.
The resource descriptor this runs at is available as rd, the execute definition (having such attributes as title, job, plus any properties given in the RD) as execDef.
Note that no I/O capturing takes place (that's impossible since in general the jobs run within the server). To have actual cron jobs, use ``execDef.spawn(["cmd", "arg1"...])``. This will send a mail on failed execution and also raise a ReportableError in that case.
In the frequent use case of a resdir-relative python program, you can use the ``execDef.spawnPython(modulePath)`` function.
If you must stay within the server process, you can do something like:
mod, _ = utils.loadPythonModule(rd.getAbsPath("bin/coverageplot.py")) mod.makePlot()
-- in that way, your code can sit safely within the resource directory and you still don't have to manipulate the module path.
Nested Classes | |
Inherited from |
Instance Methods | |
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Class Methods | |
Inherited from |
Class Variables | |
name_ =
a sentinel for all kinds of undefined values. |
|
formalArgs =
|
|
Inherited from Inherited from Inherited from |
Properties | |
Inherited from |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |