Joblet

Defines the execution on the resource. A Job writer constructs a subclass of Joblet to define code to run on a resource. The method joblet_started_event is required to be implemented. joblet_started_event is invoked on the resource. The Job writer invokes the schedule() function in the Job subclass to define when and which resource the Joblet is executed. Each Joblet instance has the Job instance (jobinstance.*, job.*, jobargs.*, user.*), Resource (resource.*) and Joblet (joblet.*, jobletargs.*) fact sets available using the base GridObjectInfo fact functions. For example, you can use self.getFact() to retrieve a Joblet fact. Use the getMatrix() built-in function to retrieve facts for other Grid Objects that are not in the context of this Joblet instance’s fact set.

See Also