Skip to content

Instantly share code, notes, and snippets.

@jaybuff
Created June 5, 2014 23:01
Show Gist options
  • Save jaybuff/ac7ce8a93901b4dc0d37 to your computer and use it in GitHub Desktop.
Save jaybuff/ac7ce8a93901b4dc0d37 to your computer and use it in GitHub Desktop.
$ cat ~/aurora-config/hello_port.aurora
hello = Process(
name = 'hello',
cmdline = """
while true; do
echo hello {{thermos.ports[hello]}} My task id is {{thermos.task_id}}
sleep 10
done
""")
task = SequentialTask(
processes = [hello],
resources = Resources(cpu = 0.1, ram = 1*MB, disk = 1*MB))
jobs = [Service(
task = task, cluster = 'vagrant', role = 'jaybuff', environment = 'prod', name = 'hello_port', instances=1)]
$ aurora inspect vagrant/jaybuff/prod/hello_port ~/aurora-config/hello_port.aurora
Job level information
name: hello_port
role: jaybuff
contact: <class 'pystachio.composite.Empty'>
cluster: vagrant
instances: 1
service: True
production: False
Task level information
name: hello
constraints:
hello
Process hello:
cmdline:
while true; do
echo hello {{thermos.ports[hello]}} My task id is {{thermos.task_id}}
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment