blob: 98732e4743d42ba2c290f8ce17caf8de281fe941 [file] [log] [blame]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# run the script
hello_world = Process(
name = 'hello_world',
cmdline = 'while :; do sleep 10; done')
# describe the task
hello_world_task = SequentialTask(
processes = [hello_world],
resources = Resources(cpu = 0.2, ram = 1 * MB, disk = 8 * MB))
base = Service(
cluster = 'devcluster',
environment = 'test',
role = 'vagrant',
task = hello_world_task
)
jobs = [
base(name='partition_aware_default'),
base(name='partition_aware_disabled', partition_policy=PartitionPolicy(reschedule=False)),
base(name='partition_aware_delay', partition_policy=PartitionPolicy(delay_secs=60 * 60 * 24))
]