blob: a825fdb3b3541b730a2577e5d79c67af2b6d0e04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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-fki-16-sr1',
'dedicated': '*/manhattan',
}
)
]
|