scheduled: true 등록 정보를 포함하는 워크플로우가 어플라이언스에 로드되면 CLI 인터페이스를 통해 일정을 정의 또는 수정할 수 있습니다. 워크플로우 일정 코딩의 예 22, 워크플로우 등록 정보 사용에서 scheduled 등록 정보를 참조하십시오.
각 일정 항목은 다음과 같은 등록 정보로 구성되어 있습니다.
|
이 예에서는 "My Scheduled Workflow"라는 워크플로우에 2개의 실행 시간을 추가하는 방법을 보여줍니다. 첫번째 실행 시간은 매일 오전 10시 05분입니다. 이 워크플로우에 대한 두번째 예약된 실행 시간은 매 월요일 오후 1시 15분입니다.
hostname:> maintenance workflows
hostname:maintenance workflows> select name="My Scheduled Workflow"
hostname:maintenance workflow-002> schedules
hostname:maintenance workflow-002 schedules> create
hostname:maintenance workflow-002 schedule (uncommitted)> set frequency=day
frequency = day (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> set hour=10
hour = 10 (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> set minute=05
minute = 05 (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> commit
hostname:maintenance workflow-002 schedules> list
NAME FREQUENCY DAY HH:MM
schedule-001 day - 10:05
hostname:maintenance workflow-002 schedules> create
hostname:maintenance workflow-002 schedule (uncommitted)> set frequency=week
frequency = week (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> set day=Monday
day = Monday (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> set hour=13
hour = 13 (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> set minute=15
minute = 15 (uncommitted)
hostname:maintenance workflow-002 schedule (uncommitted)> commit
hostname:maintenance workflow-002 schedules> list
NAME FREQUENCY DAY HH:MM
schedule-001 day - 10:05
schedule-002 week Monday 13:15
hostname:maintenance workflow-002 schedules>