![]() |
![]()
| ![]() |
![]()
METHODSdisplay_nameAn attempt to make a meaningful written statement about the job. cancelLog a status and prevent other stages from running. best_statusFind the best status so far. The process is to track back from the last worker and find the highest scoring status, skipping the check phase. finalise_statusFind the best status and log it into the job's "status" and "log" slots. check_passedReturns true if at least one worker during the "check" phase flagged status "done". namespace_passed( \%workerconf )Returns true when, for the namespace specified in the given configuration, a worker of a higher priority level has already succeeded. enter_phase( $phase )Pass the name of the phase being entered. add_statusPassed an App::Netdisco::Worker::Status will add it to this job's internal status cache. Phase slot of the Status will be set to the current phase. ADDITIONAL COLUMNSColumns which exist in this class but are not in App::Netdisco::DB::Result::Admin class. idAlias for the "job" column. extraAlias for the "subaction" column. only_namespaceAction command from the user can be an action name or the action name plus one child namespace in the form: ""action::child"". This slot stores the "child" component of the command so that "action" is backwards compatible with Netdisco. job_priorityWhen selecting jobs from the database, some types of job are higher priority - usually those submitted in the web interface by a user, and those making changes (writing to) the device. This slot stores a number which is the priority of the job and is used by MCE when managing its job queue.
|