-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.yaml
89 lines (87 loc) · 2.04 KB
/
task.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
- name: process1
id: 1f450f51-7633-4928-9a29-449317169e6a
current_status: Scheduled
status_history: []
agent: local
timing_cron: "* * * * * *"
variables: {}
task: !Sequential
tasks:
- !Print
message: SENDING EMAIL
- !Email
to:
- abc@gmail.com
- admin@admin.com
from: ME
subject: Test Subject!
body: Some Optional conditional message
- !Print
message: Completed Process1!
- name: process2
id: c10cc6ee-3273-40e8-932b-ed6f835420d6
current_status: Scheduled
status_history: []
agent: local
timing_cron: 1/3 * * * * *
variables: {}
task: !Sequential
tasks:
- !Script
command: "C:\\Users\\jacob\\Desktop\\rusttres\\target\\release\\rusttres.exe"
env: "C:\\Users\\jacob\\Desktop\\rusttres"
- !Script
command: "C:\\Users\\jacob\\Desktop\\rusttres\\target\\release\\rusttres.exe"
env: "C:\\Users\\jacob\\Desktop\\rusttres"
- !Print
message: Completed Process2!
- name: process3
id: c10cc6ee-3273-40e8-932b-ed6f835420d6
current_status: Scheduled
status_history: []
agent: local
timing_cron: 1/3 * * * * *
variables: {}
task: !Parallel
tasks:
- !Print
message: Starting Process2
- !Sequential
tasks:
- !Print
message: "1"
- !Delay
delay: 1
- !Print
message: "2"
- !Delay
delay: 1
- !Print
message: "3"
- !Delay
delay: 1
- !Print
message: "4"
- !Delay
delay: 1
- !Print
message: "5"
- !Delay
delay: 1
- !Print
message: "6"
- !Delay
delay: 1
- !Print
message: "7"
- !Delay
delay: 1
- !Print
message: "8"
- !Delay
delay: 1
- !Print
message: "9"
- !Print
message: Completed Process2!