MeVisLab Scripting Reference
|
#include <mlabJobSchedulerClient.h>
Inherits QObject.
Public Slots | |
bool | checkJobScheduler () |
MLABClientJob * | createJob () |
QString | defaultUserName () const |
bool | isConnected () |
QList< MLABClientJob * > | queryJobs (const QVariantMap &properties=QVariantMap()) |
void | setDefaultUserName (const QString &userName) |
Signals | |
void | connectionLost () |
void | newJob (qlonglong jobID) |
A scripting extension offering access to the MeVisLab job scheduler service, which allows to execute batch jobs in the background even if MeVisLab is not running.
Create a new instance of this class with
The actual JobScheduler is not started automatically. The JobScheduler can, e.g., be started from Python in MeVisLab like this:
(this way the JobScheduler keeps running when MeVisLab is terminated).
In theory the JobScheduler could be also be installed as a service on Windows, but services on Windows don't have access to a GUI context, which would preclude the use of MeVisLab for batch jobs, which most users will find undesirable.
|
slot |
Check if the job scheduler is available,.
|
signal |
Emitted when the connection to the job scheduler is lost.
|
slot |
Create a new job.
Configuration is done on the returned object.
|
inlineslot |
Get the user name that is set by default in all new jobs.
|
slot |
Check if the client is currently connected to the job scheduler; checkJobScheduler() will automatically try to connect, but isConnected() will not.
|
signal |
Emitted when a new job is submitted from any client (even this one).
|
slot |
Retrieve list of jobs with given properties.
Typically one might query for jobs with a given "jobID", "status", "application", or "userName".
For "status" one can use one of the values "Waiting", "ReadyToRun", "Starting", "Running", "Finished", or "Failed".
If no properties are given, all registered jobs are returned, this includes finished jobs.
If more than one property is given, all properties must match.
Example:
|
inlineslot |
Set a new default user name.
This should identify the user that creates any new jobs.