The Job class represents a running job instance. This class defines functions for interacting with the server including handling notification of job state transitions, child job submission, managing joblets and for receiving and sending events from resources and from clients. A job writer defines a subclass of the Job class and uses the methods available on the Job class for scheduling joblets and event processing.
It is possible that when you attempt to deploy a component such as .job, sjob, jdl, cfact, event, metric, policy, eaf, sar, sched, trig, python, pylib; where prepackaged components are located in the /opt/novell/zenworks/zos/server/components directory, the Orchestration might intermittently fail the deployment, displaying a message similar to the following:
class foo(Job):
def job_started_event(self):
self.userID = "foo"
results in the following job failure:
JobID: aspiers.jobIDtestjob.118426
Traceback (most recent call last):
File "jobIDtestjob", line 10, in job_started_event
AttributeError: read-only attr: userID
Job 'aspiers.jobIDtestjob.118426' terminated because of failure. Reason:
AttributeError: read-only attr: userID
The following identifiers are known to cause problems:
jobID
name
type
userID
To work around this issue, rename any of these attributes in your JDL code.
Javadoc: Job