Job Scheduling
You can schedule execution of functions in specified time intervals and run as background jobs, such as data analysis, AI predictions, etc.
1. Log into the ADP console and select "Function" -> "Scheduler" menu.
2. Enter details of the job and click SAVE button.
Name : name of the job (alphabets and numbers only)
Schedule : job execution schedule in Unix-cron style format
Time zone : jobs executed in the specified time zone
Function : specify a Directory or Standalone function
Storage : specify a Storage DataSource, which will be passed to the function
Parameters : Pass parameters to the function in JSON format
From within a function: Obtained from the adpy.data object
e.g. adpy.data[“p1”].
Notification : Receive notification by email when a function finishes executing
Failed : Notification upon execution failure
Success : Notification when execution succeeds
3. Click on Option and you can also specify execution options
Retry: Number of times to re-execute the function if it fails to execute (default 0)
In-place file: Replaces the input file with the output file when a File function is executed (default false)
All files: Execute Directory functions with all files under the Storage Data Source as the target files to be processed
File open: Directory Stores the files argument with the corresponding files open when the function is executed (default true)
Input Encoding: Specify the encoding of input files to be opened by Directory and File functions (default utf-8), conforming to Python encoding
Output Encoding: Specify the encoding of the output file to be opened by the Directory and File functions (default utf-8), conforming to Python encoding
Job operation
DELETE, RUN NOW, PAUSE and RESUME can be performed on registered jobs.
1. Log into the ADP console and select "Function" -> "Scheduler" menu.
2. Select an operation option from the submenu of the target job from the job list.
DELETE : Delete the job
RUN NOW : Immediately execute the job
PAUSE : Suspend job scheduling
RESUME : Rescheduling a job
* Jobs that have already started executing can be terminated from the Storage or Function menu.