Lines Matching refs:job
4 A job is a set of commands in the **.cfg** file of the init module. A maximum of 4096 jobs can be a…
7 …job can be configured in the **init.cfg** file or the custom **.cfg** file of the module. The pars…
8 - Basic job
10 …A job executed in a fixed phase during init process startup, for example, pre-init, init, or post-…
15 - Custom job (for standard system or higher)
17 …job triggered based on specific rules. You can add commands to the job as required and run the **t…
19 - Conditional job (for standard system or higher)
21 …A job triggered based on specific conditions. You can add conditions to a job so that the job is e…
37 …When defining commands for a job, you can add attributes in the format of **param:xxx** to form di…
44 A job is a command set, where you can manage the commands to be executed. A maximum of 4096 command…
75 …| trigger | trigger jobName<br>Example:<br>trigger early-fs| Triggers a job.<br>System type: stand…
98 …es not provide help for other types of management. The following describes the job management APIs.
100 **Table 2** Description of job parsing APIs
104 |static void ParseJob(const cJSON *jobItem, Job *resJob)|Checks whether a job exists and parses <st…
105 …nst cJSON *root, CmdLines **cmdLines)| Parses <strong>cmds</strong> in the job. This API is used f…
106 …id)(const char *jobName))|Parses the <strong>trigger</strong> command in the job.| Standard system|
107 …N *triggerItem, <br>int (*checkJobValid)(const char *jobName))|Obtains the job name, condition att…
109 **Table 3** Description of the job triggering APIs
112 …har *content, uint32_t contentLen)|Verifies the validity of the job name and sends a job triggerin…
115 |void DoTriggerExec(const char *triggerName)| Finds a command group based on the job name and pushe…
116 …har *jobName)|Matches a job based on the job name and invokes <strong>DoCmdByIndex</strong><br>to …
120 …s</strong> in the <strong>.cfg</strong> file. You can use it to verify the job management function.
123 "jobs" : [{ // Basic job
129 }, { // Conditional job
136 }, { // Custom job
147 The differences in job configuration are described as follows:
149 1. <strong>name</strong> and <strong>cmds</strong> are mandatory for a job, and <strong>cmds</stron…
151 … optional attribute of a job. It indicates that the job is triggered only when the specified condi…
153 3. The job name must comply with the specified rules. For a job whose condition is a system paramet…
155 …ommands in a renamed job can be executed only after being triggered by the <strong>trigger</strong…
157 5. An existing job name can be used in different files. Jobs with the same name are regarded as the…
159 …job, a condition is usually a system parameter. You can set a specific value so that the job is tr…
161 7. For the small system, the commands in a job cannot be triggered by the <strong>trigger</strong> …