blob: e0758a37996d48fc53f4a37869ca732ce0a2a077 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
hello_date = Process(
name='hello-date',
cmdline='while true; do date; sleep 10; done'
)
jobs = [
Service(
cluster='smf1',
environment='devel',
role='fcuny',
name='hello-date',
task=Task(
processes=[hello_date],
resources=Resources(cpu=10, ram=1024 * MB, disk=512 * MB)
),
instances=1,
constraints={
'host': 'smf1-feq-33-sr1',
}
)
]
|