Task
1. Overview
The file task.yaml
in exported package contains all configuration of Task
module from exported title region. You can add, delete or update some items in the file and then re-import to the title region.
2. An Example of The File Content
# AUTO-GENERATED FILE.
#
# Export information
# @export_time: Thu, 17 Mar 2022 07:26:50 GMT
#
# This file was automatically generated by PGOS Portal.
# Copyright 2022 Proxima Beta, Inc. All Rights Reserved.
#
# Constant Definitions:
# timer_type: 0-Only Run Once, 1-With Deadline, 2-Run Forever.
# life_time_unit: second/day/year
# action_type: vsf
task:
snapshot_tag: "20220317152639198"
title_id: "5"
title_region_id: d_5_812179_dev
list:
- identification:
task_name: task1
description: xxx
cron_expression: "* * * * * *"
timer_type: 1
life_time: 100
life_time_unit: second
action_list:
- action_args: '{"args":"xxx"}'
action_type: vsf
action_entity:
server_name: func_client_test
function_name: err
3. Field Description
- identification: The unique identifier for the current resource, it contains multiple fields:
- task_name: the name of task. Type: string. Length: 1-60.
- description: the description of task. Type: string. Length: 1-1000.
- cron_expression: the cron expression of task. Type: string.
- timer_type: the timer type of task. Type: number, 0-Only Run Once, 1-With Deadline, 2-Run Forever.
- life_time: (With Deadline Only)the life time of task. Type: number.
- life_time_unit: (With Deadline Only)the life time unit of task. Type: string, second/day/year.
- action_list: the action of task. Type: array.
- action_args: the args of action. Type: json string.
- action_type: the type of action. Type: string, vsf.
- action_entity
- server_name: (vsf only) the name of virtual server. Type: string.
- function_name: (vsf only) the function name of virtual server. Type: string.