Deadline Scripting Reference
10.2.1.1
|
The abstract event plugin class, which is subclassed in the event plugin python script file. More...
Public Member Functions | |
void | AddMetaDataEntry (string key, string value) |
Adds a dictionary entry to the event's metadata. This entry will persist between event triggers. This has no effect if the key already exists. More... | |
void | ClearProcessEnvironmentVariables () |
Clears the extra environment variables for the event plugin. More... | |
void | DeleteMetaDataEntry (string key) |
Deletes an existing dictionary entry from the event's metadata. This has no effect if the key does not exist. More... | |
string[] | GetAuxiliaryFilenames () |
Gets the list of auxiliary files that were submitted with the job. More... | |
bool | GetBooleanConfigEntry (string key) |
Gets a value as a bool from the plugin's configuration for the given key. More... | |
bool | GetBooleanConfigEntryWithDefault (string key, bool defaultValue) |
Gets a value as a bool from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned. More... | |
bool | GetBooleanPluginInfoEntry (string key) |
Gets the job's plugin info value as a bool for the given key. More... | |
bool | GetBooleanPluginInfoEntryWithDefault (string key, bool defaultValue) |
Gets the job's plugin info value as a bool for the given key. If the key doesn't exist, the default value is returned. More... | |
string | GetConfigEntry (string key) |
Gets a value from the plugin's configuration for the given key. More... | |
string | GetConfigEntryWithDefault (string key, string defaultValue) |
Gets a value from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned. More... | |
string | GetDataFilename () |
Gets the first auxiliary file that was submitted with the job. More... | |
string | GetEventDirectory () |
Gets the event's plugin directory in the Repository. More... | |
float | GetFloatConfigEntry (string key) |
Gets a value as a float from the plugin's configuration for the given key. More... | |
float | GetFloatConfigEntryWithDefault (string key, float defaultValue) |
Gets a value as a float from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned. More... | |
float | GetFloatPluginInfoEntry (string key) |
Gets the job's plugin info value as a float for the given key. More... | |
float | GetFloatPluginInfoEntryWithDefault (string key, float defaultValue) |
Gets the job's plugin info value as a float for the given key. If the key doesn't exist, the default value is returned. More... | |
int | GetIntegerConfigEntry (string key) |
Gets a value as an integer from the plugin's configuration for the given key. More... | |
int | GetIntegerConfigEntryWithDefault (string key, int defaultValue) |
Gets a value as an integer from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned. More... | |
int | GetIntegerPluginInfoEntry (string key) |
Gets the job's plugin info value as an integer for the given key. More... | |
int | GetIntegerPluginInfoEntryWithDefault (string key, int defaultValue) |
Gets the job's plugin info value as an integer for the given key. If the key doesn't exist, the default value is returned. More... | |
long | GetLongConfigEntry (string key) |
Gets a value as a long from the plugin's configuration for the given key. More... | |
long | GetLongConfigEntryWithDefault (string key, long defaultValue) |
Gets a value as a long from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned. More... | |
long | GetLongPluginInfoEntry (string key) |
Gets the job's plugin info value as a long for the given key. More... | |
long | GetLongPluginInfoEntryWithDefault (string key, long defaultValue) |
Gets the job's plugin info value as a long for the given key. If the key doesn't exist, the default value is returned. More... | |
Dictionary< string, string > | GetMetaData () |
Gets the full metadata dictionary for the event. More... | |
string | GetMetaDataEntry (string key) |
Gets the value of an existing dictionary entry from the event's metadata. More... | |
string | GetPluginInfoEntry (string key) |
Gets the job's plugin info value for the given key. More... | |
string | GetPluginInfoEntryWithDefault (string key, string defaultValue) |
Gets the job's plugin info value for the given key. If the key doesn't exist, the default value is returned. More... | |
string | GetProcessEnvironmentVariable (string key) |
Gets the extra environment variable for the event plugin with the given key. If the variable is not defined, an empty string is returned. More... | |
void | LogInfo (string message) |
Logs an INFO message. More... | |
void | LogMessage (string message) |
Logs a message. More... | |
void | LogStdout (string message) |
Logs a STDOUT message. More... | |
void | LogWarning (string message) |
Logs a WARNING message. More... | |
virtual void | OnHouseCleaning () |
Calls the on house cleaning callback. More... | |
virtual void | OnIdleShutdown (string groupName, string[] slaveNames, IdleShutdownOptions idleShutdownOptions) |
Calls the on idle shutdown callback. More... | |
virtual void | OnJobDeleted (Job job) |
Calls the on job deleted callback. More... | |
virtual void | OnJobError (Job job, Task task, Report errorReport) |
Calls the on job error callback. More... | |
virtual void | OnJobFailed (Job job) |
Calls the on job failed callback. More... | |
virtual void | OnJobFinished (Job job) |
Calls the on job finished callback. More... | |
virtual bool | OnJobImported (Job job) |
Calls the on job imported callback. More... | |
virtual void | OnJobPended (Job job) |
Calls the on job pending callback. More... | |
virtual void | OnJobPurged (Job job) |
Calls the on job purged callback. More... | |
virtual void | OnJobReleased (Job job) |
Calls the on job released callback. More... | |
virtual void | OnJobRequeued (Job job) |
Calls the on job requeued callback. More... | |
virtual void | OnJobResumed (Job job) |
Calls the on job resumed. More... | |
virtual void | OnJobStarted (Job job) |
Calls the on job started callback. More... | |
virtual bool | OnJobSubmitted (Job job) |
Calls the on job submitted callback. More... | |
virtual void | OnJobSuspended (Job job) |
Calls the on job suspended callback. More... | |
virtual void | OnMachineRestart (string groupName, string[] slaveNames, MachineRestartOptions machineRestartOptions) |
Calls the on machine restart callback. More... | |
virtual void | OnMachineStartup (string groupName, string[] slaveNames, MachineStartupOptions machineStartupOptions) |
Calls the on machine startup callback. More... | |
virtual void | OnRepositoryRepair () |
Calls the on repository repair callback. More... | |
virtual void | OnSlaveIdle (string slaveName) |
Calls the on Worker idle callback. More... | |
virtual void | OnSlaveInfoUpdate (string slaveName, SlaveInfo slaveInfo) |
Calls the on Worker info updated callback. More... | |
virtual void | OnSlaveRendering (string slaveName, Job job) |
calls the on Worker rendering callback. More... | |
virtual void | OnSlaveStalled (string slaveName) |
Calls the on Worker stalled callback. More... | |
virtual void | OnSlaveStarted (string slaveName) |
Calls the on Worker started callback. More... | |
virtual void | OnSlaveStartingJob (string slaveName, Job job) |
Calls the on Worker starting job callback. More... | |
virtual void | OnSlaveStopped (string slaveName) |
Calls the on Worker stopped callback. More... | |
virtual void | OnThermalShutdown (string groupName, string[] slaveNames, ThermalShutdownOptions thermalShutdownOptions) |
Calls the on thermal shutdown callback. More... | |
bool | ProcessEnvironmentVariableExists (string key) |
Checks if the extra environment with the given key exists. More... | |
void | ResetEventPlugin () |
Resets the event plugin. More... | |
int | RunProcess (string executable, string arguments, string startupDirectory, int timeoutMilliseconds) |
Runs a process and waits for it to complete. More... | |
int | RunProcessAsUser (string executable, string arguments, string startupDirectory, int timeoutMilliseconds, string userName, string domain, string password) |
Runs a process and waits for it to complete. More... | |
void | SetEventPlugin (DeadlineEventPlugin eventPlugin) |
Sets the event plugin. More... | |
void | SetProcessEnvironmentVariable (string key, string value) |
Sets extra environment variables for any processes started by this event plugin. The processes must be started using RunProcess(). This will take precedence over a variable in the current environment with the same name. More... | |
void | UpdateMetaDataEntry (string key, string value) |
Updates an existing dictionary entry to the event's metadata. This entry will persist between event triggers. This has no effect if the key does not exist. More... | |
Properties | |
bool | UseProcessEnvironmentVariablesOnly [get, set] |
If True, only the extra environment variables defined for the event plugin will be used. If False (the default behavior), the extra environment variables will be merged with the current environment. More... | |
Events | |
GenericDelegate0 | OnHouseCleaningCallback |
If a function is assigned to this callback, it will be called when the House Cleaning operation is performed. More... | |
GenericDelegate3< string, string[], IdleShutdownOptions > | OnIdleShutdownCallback |
If a function is assigned to this callback, it will be called when Power Management shuts down a Worker machine because it is idle. The string corresponds to the group name and the string array corresponds to the Worker names. More... | |
GenericDelegate1< Job > | OnJobDeletedCallback |
If a function is assigned to this callback, it will be called when a job is deleted. More... | |
GenericDelegate3< Job, Task, Report > | OnJobErrorCallback |
If a function is assigned to this callback, it will be called when a job reports an error while rendering. More... | |
GenericDelegate1< Job > | OnJobFailedCallback |
If a function is assigned to this callback, it will be called when a job fails. More... | |
GenericDelegate1< Job > | OnJobFailedEvent |
DEPRECATED: Use OnJobFailedCallback. More... | |
GenericDelegate1< Job > | OnJobFinishedCallback |
If a function is assigned to this callback, it will be called when a job completes. More... | |
GenericDelegate1< Job > | OnJobFinishedEvent |
DEPRECATED: Use OnJobFinishedCallback. More... | |
GenericDelegate1< Job > | OnJobImportedCallback |
If a function is assigned to this callback, it will be called when a job is imported. More... | |
GenericDelegate1< Job > | OnJobPendedCallback |
If a function is assigned to this callback, it will be called when a job enters the pending state. More... | |
GenericDelegate1< Job > | OnJobPendedEvent |
DEPRECATED: Use OnJobPendedCallback. More... | |
GenericDelegate1< Job > | OnJobPurgedCallback |
If a function is assigned to this callback, it will be called when a job is purged. More... | |
GenericDelegate1< Job > | OnJobReleasedCallback |
If a function is assigned to this callback, it will be called when a pending job is released. More... | |
GenericDelegate1< Job > | OnJobReleasedEvent |
DEPRECATED: Use OnJobReleasedCallback. More... | |
GenericDelegate1< Job > | OnJobRequeuedCallback |
If a function is assigned to this callback, it will be called when a job is requeued. More... | |
GenericDelegate1< Job > | OnJobRequeuedEvent |
DEPRECATED: Use OnJobRequeuedCallback. More... | |
GenericDelegate1< Job > | OnJobResumedCallback |
If a function is assigned to this callback, it will be called when a suspended or failed job is resumed. More... | |
GenericDelegate1< Job > | OnJobResumedEvent |
DEPRECATED: Use OnJobResumedCallback. More... | |
GenericDelegate1< Job > | OnJobStartedCallback |
If a function is assigned to this callback, it will be called when a job has started rendering. More... | |
GenericDelegate1< Job > | OnJobStartedEvent |
DEPRECATED: Use OnJobStartedCallback. More... | |
GenericDelegate1< Job > | OnJobSubmittedCallback |
If a function is assigned to this callback, it will be called when a job is submitted. More... | |
GenericDelegate1< Job > | OnJobSubmittedEvent |
DEPRECATED: Use OnJobSubmittedCallback. More... | |
GenericDelegate1< Job > | OnJobSuspendedCallback |
If a function is assigned to this callback, it will be called when a job is suspended. More... | |
GenericDelegate1< Job > | OnJobSuspendedEvent |
DEPRECATED: Use OnJobSuspendedCallback. More... | |
GenericDelegate3< string, string[], MachineRestartOptions > | OnMachineRestartCallback |
If a function is assigned to this callback, it will be called when Power Management restarts a Worker machine. The string corresponds to the group name and the string array corresponds to the Worker names. More... | |
GenericDelegate3< string, string[], MachineStartupOptions > | OnMachineStartupCallback |
If a function is assigned to this callback, it will be called when Power Management starts up a Worker machine because it is needed for rendering. The string corresponds to the group name and the string array corresponds to the Worker names. More... | |
GenericDelegate0 | OnRepositoryRepairCallback |
If a function is assigned to this callback, it will be called when the Repository Repair operation is performed. More... | |
GenericDelegate1< string > | OnSlaveIdleCallback |
If a function is assigned to this callback, it will be called when a Worker becomes idle. The string corresponds to the Worker name. More... | |
GenericDelegate2< string, SlaveInfo > | OnSlaveInfoUpdatedCallback |
If a function is assigned to this callback, it will be called when a Worker updates its information in the database. The string corresponds to the Worker name. The SlaveInfo is the information that is being written to the database. More... | |
GenericDelegate2< string, Job > | OnSlaveRenderingCallback |
If a function is assigned to this callback, it will be called when a Worker starts rendering a job. The string corresponds to the Worker name. More... | |
GenericDelegate1< string > | OnSlaveStalledCallback |
If a function is assigned to this callback, it will be called when a Worker is marked as stalled. The string corresponds to the Worker name. More... | |
GenericDelegate1< string > | OnSlaveStartedCallback |
If a function is assigned to this callback, it will be called when a Worker is started. The string corresponds to the Worker name. More... | |
GenericDelegate2< string, Job > | OnSlaveStartingJobCallback |
If a function is assigned to this callback, it will be called when a Worker starts loading a job. The string corresponds to the Worker name. More... | |
GenericDelegate1< string > | OnSlaveStoppedCallback |
If a function is assigned to this callback, it will be called when a sWorkerlave is stopped. The string corresponds to the Worker name. More... | |
GenericDelegate3< string, string[], ThermalShutdownOptions > | OnThermalShutdownCallback |
If a function is assigned to this callback, it will be called when Power Management shuts down a Worker machine due to temperature. The string corresponds to the group name and the string array corresponds to the Worker names. More... | |
The abstract event plugin class, which is subclassed in the event plugin python script file.
void Deadline.Events.DeadlineEventListener.AddMetaDataEntry | ( | string | key, |
string | value | ||
) |
Adds a dictionary entry to the event's metadata. This entry will persist between event triggers. This has no effect if the key already exists.
key | The key. |
value | The value. |
void Deadline.Events.DeadlineEventListener.ClearProcessEnvironmentVariables | ( | ) |
Clears the extra environment variables for the event plugin.
void Deadline.Events.DeadlineEventListener.DeleteMetaDataEntry | ( | string | key | ) |
Deletes an existing dictionary entry from the event's metadata. This has no effect if the key does not exist.
key | The key. |
string [] Deadline.Events.DeadlineEventListener.GetAuxiliaryFilenames | ( | ) |
Gets the list of auxiliary files that were submitted with the job.
bool Deadline.Events.DeadlineEventListener.GetBooleanConfigEntry | ( | string | key | ) |
Gets a value as a bool from the plugin's configuration for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
bool Deadline.Events.DeadlineEventListener.GetBooleanConfigEntryWithDefault | ( | string | key, |
bool | defaultValue | ||
) |
Gets a value as a bool from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
bool Deadline.Events.DeadlineEventListener.GetBooleanPluginInfoEntry | ( | string | key | ) |
Gets the job's plugin info value as a bool for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
bool Deadline.Events.DeadlineEventListener.GetBooleanPluginInfoEntryWithDefault | ( | string | key, |
bool | defaultValue | ||
) |
Gets the job's plugin info value as a bool for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
string Deadline.Events.DeadlineEventListener.GetConfigEntry | ( | string | key | ) |
Gets a value from the plugin's configuration for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
string Deadline.Events.DeadlineEventListener.GetConfigEntryWithDefault | ( | string | key, |
string | defaultValue | ||
) |
Gets a value from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
string Deadline.Events.DeadlineEventListener.GetDataFilename | ( | ) |
Gets the first auxiliary file that was submitted with the job.
string Deadline.Events.DeadlineEventListener.GetEventDirectory | ( | ) |
Gets the event's plugin directory in the Repository.
float Deadline.Events.DeadlineEventListener.GetFloatConfigEntry | ( | string | key | ) |
Gets a value as a float from the plugin's configuration for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
float Deadline.Events.DeadlineEventListener.GetFloatConfigEntryWithDefault | ( | string | key, |
float | defaultValue | ||
) |
Gets a value as a float from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
float Deadline.Events.DeadlineEventListener.GetFloatPluginInfoEntry | ( | string | key | ) |
Gets the job's plugin info value as a float for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
float Deadline.Events.DeadlineEventListener.GetFloatPluginInfoEntryWithDefault | ( | string | key, |
float | defaultValue | ||
) |
Gets the job's plugin info value as a float for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
int Deadline.Events.DeadlineEventListener.GetIntegerConfigEntry | ( | string | key | ) |
Gets a value as an integer from the plugin's configuration for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
int Deadline.Events.DeadlineEventListener.GetIntegerConfigEntryWithDefault | ( | string | key, |
int | defaultValue | ||
) |
Gets a value as an integer from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
int Deadline.Events.DeadlineEventListener.GetIntegerPluginInfoEntry | ( | string | key | ) |
Gets the job's plugin info value as an integer for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
int Deadline.Events.DeadlineEventListener.GetIntegerPluginInfoEntryWithDefault | ( | string | key, |
int | defaultValue | ||
) |
Gets the job's plugin info value as an integer for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
long Deadline.Events.DeadlineEventListener.GetLongConfigEntry | ( | string | key | ) |
Gets a value as a long from the plugin's configuration for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
long Deadline.Events.DeadlineEventListener.GetLongConfigEntryWithDefault | ( | string | key, |
long | defaultValue | ||
) |
Gets a value as a long from the plugin's configuration for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
long Deadline.Events.DeadlineEventListener.GetLongPluginInfoEntry | ( | string | key | ) |
Gets the job's plugin info value as a long for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
long Deadline.Events.DeadlineEventListener.GetLongPluginInfoEntryWithDefault | ( | string | key, |
long | defaultValue | ||
) |
Gets the job's plugin info value as a long for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
Dictionary<string, string> Deadline.Events.DeadlineEventListener.GetMetaData | ( | ) |
Gets the full metadata dictionary for the event.
string Deadline.Events.DeadlineEventListener.GetMetaDataEntry | ( | string | key | ) |
Gets the value of an existing dictionary entry from the event's metadata.
key | The key. |
string Deadline.Events.DeadlineEventListener.GetPluginInfoEntry | ( | string | key | ) |
Gets the job's plugin info value for the given key.
key | The name of the plugin info entry. An error is thrown if the key is not defined. |
string Deadline.Events.DeadlineEventListener.GetPluginInfoEntryWithDefault | ( | string | key, |
string | defaultValue | ||
) |
Gets the job's plugin info value for the given key. If the key doesn't exist, the default value is returned.
key | The name of the plugin info entry. |
defaultValue | The default value. |
string Deadline.Events.DeadlineEventListener.GetProcessEnvironmentVariable | ( | string | key | ) |
Gets the extra environment variable for the event plugin with the given key. If the variable is not defined, an empty string is returned.
key | The name of the environment variable. |
void Deadline.Events.DeadlineEventListener.LogInfo | ( | string | message | ) |
Logs an INFO message.
message | The message. |
void Deadline.Events.DeadlineEventListener.LogMessage | ( | string | message | ) |
Logs a message.
message |
void Deadline.Events.DeadlineEventListener.LogStdout | ( | string | message | ) |
Logs a STDOUT message.
message | The message. |
void Deadline.Events.DeadlineEventListener.LogWarning | ( | string | message | ) |
Logs a WARNING message.
message | The message. |
|
virtual |
Calls the on house cleaning callback.
|
virtual |
Calls the on idle shutdown callback.
groupName | The name of the power management group. |
slaveNames | The Workers that are being shut down. |
idleShutdownOptions | The idle shutdown options for the power management group that is triggering the shutdown. |
|
virtual |
Calls the on job deleted callback.
job |
|
virtual |
Calls the on job error callback.
job | |
task | |
errorReport |
|
virtual |
Calls the on job failed callback.
job |
|
virtual |
Calls the on job finished callback.
job |
|
virtual |
Calls the on job imported callback.
job |
|
virtual |
Calls the on job pending callback.
job |
|
virtual |
Calls the on job purged callback.
job |
|
virtual |
Calls the on job released callback.
job |
|
virtual |
Calls the on job requeued callback.
job |
|
virtual |
Calls the on job resumed.
job |
|
virtual |
Calls the on job started callback.
job |
|
virtual |
Calls the on job submitted callback.
job |
|
virtual |
Calls the on job suspended callback.
job |
|
virtual |
Calls the on machine restart callback.
groupName | The name of the power management group. |
slaveNames | The Workers that are being restarted. |
machineRestartOptions | The machine restart options for the power management group that is triggering the restart. |
|
virtual |
Calls the on machine startup callback.
groupName | The name of the power management group. |
slaveNames | The Workers that are being started up. |
machineStartupOptions | The machine startup options for the power management group that is triggering the startup. |
|
virtual |
Calls the on repository repair callback.
|
virtual |
Calls the on Worker idle callback.
slaveName |
|
virtual |
Calls the on Worker info updated callback.
slaveName | |
slaveInfo |
|
virtual |
calls the on Worker rendering callback.
slaveName | |
job |
|
virtual |
Calls the on Worker stalled callback.
slaveName |
|
virtual |
Calls the on Worker started callback.
slaveName |
|
virtual |
Calls the on Worker starting job callback.
slaveName | |
job |
|
virtual |
Calls the on Worker stopped callback.
slaveName |
|
virtual |
Calls the on thermal shutdown callback.
groupName | The name of the power management group. |
slaveNames | The Workers that are being shut down. |
thermalShutdownOptions | The thermal shutdown options for the power management group that is triggering the shutdown. |
bool Deadline.Events.DeadlineEventListener.ProcessEnvironmentVariableExists | ( | string | key | ) |
Checks if the extra environment with the given key exists.
key | The name of the environment variable. |
void Deadline.Events.DeadlineEventListener.ResetEventPlugin | ( | ) |
Resets the event plugin.
int Deadline.Events.DeadlineEventListener.RunProcess | ( | string | executable, |
string | arguments, | ||
string | startupDirectory, | ||
int | timeoutMilliseconds | ||
) |
Runs a process and waits for it to complete.
executable | The executable to run. If the executable isn't rooted, the current directory will be checked first, followed by all directories in the PATH environment variable. |
arguments | The arguments to pass to the executable. |
startupDirectory | The directory to start the exectuable in. Specify an empty string to use directory the executable is in. |
timeoutMilliseconds | The number of milliseconds for the process to exit, otherwise an error is thrown. If this is less than 0, this will block until the process exits. |
int Deadline.Events.DeadlineEventListener.RunProcessAsUser | ( | string | executable, |
string | arguments, | ||
string | startupDirectory, | ||
int | timeoutMilliseconds, | ||
string | userName, | ||
string | domain, | ||
string | password | ||
) |
Runs a process and waits for it to complete.
executable | The executable to run. If the executable isn't rooted, the current directory will be checked first, followed by all directories in the PATH environment variable. |
arguments | The arguments to pass to the executable. |
startupDirectory | The directory to start the exectuable in. Specify an empty string to use directory the executable is in. |
timeoutMilliseconds | The number of milliseconds for the process to exit, otherwise an error is thrown. If this is less than 0, this will block until the process exits. |
userName | The name of the user to run the process as. This is required for Windows, Linux, and Mac OS X. |
domain | The user's domain name, which is used to run the process as the given user. This is only required on Windows. |
password | The user's password, which is used to run the process as the given user. This is only required on Windows. |
void Deadline.Events.DeadlineEventListener.SetEventPlugin | ( | DeadlineEventPlugin | eventPlugin | ) |
Sets the event plugin.
eventPlugin |
void Deadline.Events.DeadlineEventListener.SetProcessEnvironmentVariable | ( | string | key, |
string | value | ||
) |
Sets extra environment variables for any processes started by this event plugin. The processes must be started using RunProcess(). This will take precedence over a variable in the current environment with the same name.
key | The name of the environment variable. |
value | The value. |
void Deadline.Events.DeadlineEventListener.UpdateMetaDataEntry | ( | string | key, |
string | value | ||
) |
Updates an existing dictionary entry to the event's metadata. This entry will persist between event triggers. This has no effect if the key does not exist.
key | The key. |
value | The value. |
|
getset |
If True, only the extra environment variables defined for the event plugin will be used. If False (the default behavior), the extra environment variables will be merged with the current environment.
GenericDelegate0 Deadline.Events.DeadlineEventListener.OnHouseCleaningCallback |
If a function is assigned to this callback, it will be called when the House Cleaning operation is performed.
GenericDelegate3<string, string[], IdleShutdownOptions> Deadline.Events.DeadlineEventListener.OnIdleShutdownCallback |
If a function is assigned to this callback, it will be called when Power Management shuts down a Worker machine because it is idle. The string corresponds to the group name and the string array corresponds to the Worker names.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobDeletedCallback |
If a function is assigned to this callback, it will be called when a job is deleted.
If a function is assigned to this callback, it will be called when a job reports an error while rendering.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobFailedCallback |
If a function is assigned to this callback, it will be called when a job fails.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobFailedEvent |
DEPRECATED: Use OnJobFailedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobFinishedCallback |
If a function is assigned to this callback, it will be called when a job completes.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobFinishedEvent |
DEPRECATED: Use OnJobFinishedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobImportedCallback |
If a function is assigned to this callback, it will be called when a job is imported.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobPendedCallback |
If a function is assigned to this callback, it will be called when a job enters the pending state.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobPendedEvent |
DEPRECATED: Use OnJobPendedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobPurgedCallback |
If a function is assigned to this callback, it will be called when a job is purged.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobReleasedCallback |
If a function is assigned to this callback, it will be called when a pending job is released.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobReleasedEvent |
DEPRECATED: Use OnJobReleasedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobRequeuedCallback |
If a function is assigned to this callback, it will be called when a job is requeued.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobRequeuedEvent |
DEPRECATED: Use OnJobRequeuedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobResumedCallback |
If a function is assigned to this callback, it will be called when a suspended or failed job is resumed.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobResumedEvent |
DEPRECATED: Use OnJobResumedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobStartedCallback |
If a function is assigned to this callback, it will be called when a job has started rendering.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobStartedEvent |
DEPRECATED: Use OnJobStartedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobSubmittedCallback |
If a function is assigned to this callback, it will be called when a job is submitted.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobSubmittedEvent |
DEPRECATED: Use OnJobSubmittedCallback.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobSuspendedCallback |
If a function is assigned to this callback, it will be called when a job is suspended.
GenericDelegate1<Job> Deadline.Events.DeadlineEventListener.OnJobSuspendedEvent |
DEPRECATED: Use OnJobSuspendedCallback.
GenericDelegate3<string, string[], MachineRestartOptions> Deadline.Events.DeadlineEventListener.OnMachineRestartCallback |
If a function is assigned to this callback, it will be called when Power Management restarts a Worker machine. The string corresponds to the group name and the string array corresponds to the Worker names.
GenericDelegate3<string, string[], MachineStartupOptions> Deadline.Events.DeadlineEventListener.OnMachineStartupCallback |
If a function is assigned to this callback, it will be called when Power Management starts up a Worker machine because it is needed for rendering. The string corresponds to the group name and the string array corresponds to the Worker names.
GenericDelegate0 Deadline.Events.DeadlineEventListener.OnRepositoryRepairCallback |
If a function is assigned to this callback, it will be called when the Repository Repair operation is performed.
GenericDelegate1<string> Deadline.Events.DeadlineEventListener.OnSlaveIdleCallback |
If a function is assigned to this callback, it will be called when a Worker becomes idle. The string corresponds to the Worker name.
GenericDelegate2<string, SlaveInfo> Deadline.Events.DeadlineEventListener.OnSlaveInfoUpdatedCallback |
If a function is assigned to this callback, it will be called when a Worker updates its information in the database. The string corresponds to the Worker name. The SlaveInfo is the information that is being written to the database.
GenericDelegate2<string, Job> Deadline.Events.DeadlineEventListener.OnSlaveRenderingCallback |
If a function is assigned to this callback, it will be called when a Worker starts rendering a job. The string corresponds to the Worker name.
GenericDelegate1<string> Deadline.Events.DeadlineEventListener.OnSlaveStalledCallback |
If a function is assigned to this callback, it will be called when a Worker is marked as stalled. The string corresponds to the Worker name.
GenericDelegate1<string> Deadline.Events.DeadlineEventListener.OnSlaveStartedCallback |
If a function is assigned to this callback, it will be called when a Worker is started. The string corresponds to the Worker name.
GenericDelegate2<string, Job> Deadline.Events.DeadlineEventListener.OnSlaveStartingJobCallback |
If a function is assigned to this callback, it will be called when a Worker starts loading a job. The string corresponds to the Worker name.
GenericDelegate1<string> Deadline.Events.DeadlineEventListener.OnSlaveStoppedCallback |
If a function is assigned to this callback, it will be called when a sWorkerlave is stopped. The string corresponds to the Worker name.
GenericDelegate3<string, string[], ThermalShutdownOptions> Deadline.Events.DeadlineEventListener.OnThermalShutdownCallback |
If a function is assigned to this callback, it will be called when Power Management shuts down a Worker machine due to temperature. The string corresponds to the group name and the string array corresponds to the Worker names.