----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/53114/#review155699 -----------------------------------------------------------
Ship it! Master (8a9939f) is green with this patch. ./build-support/jenkins/build.sh I will refresh this build result if you post a review containing "@ReviewBot retry" - Aurora ReviewBot On Nov. 11, 2016, 9:34 a.m., Jing Chen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/53114/ > ----------------------------------------------------------- > > (Updated Nov. 11, 2016, 9:34 a.m.) > > > Review request for Aurora, Joshua Cohen, Stephan Erb, Brian Wickman, and > Zameer Manji. > > > Bugs: AURORA-1504 > https://issues.apache.org/jira/browse/AURORA-1504 > > > Repository: aurora > > > Description > ------- > > aurora job inspect should have a --write-json option > > > Diffs > ----- > > src/main/python/apache/aurora/client/cli/jobs.py > 87fbf13f8e5955b30436f8d871b548275f009893 > src/test/python/apache/aurora/client/cli/test_inspect.py > fedc16b3d4e9fb7d6f5f0dc34ad7a1837e34baea > > Diff: https://reviews.apache.org/r/53114/diff/ > > > Testing > ------- > > vagrant@aurora:~$ aurora job inspect > devcluster/www-data/devel/cron_hello_jing /vagrant/cron_hello_jing.aurora > --write-json | tee /tmp/test.json > ``` > {"environment": "devel", "health_check_config": {"initial_interval_secs": > 15.0, "health_checker": {"http": {"expected_response_code": 0, "endpoint": > "/health", "expected_response": "ok"}}, "interval_secs": 10.0, > "timeout_secs": 1.0, "max_consecutive_failures": 0}, "cluster": "devcluster", > "cron_schedule": "*/10 * * * *", "service": false, "update_config": > {"wait_for_batch_completion": false, "batch_size": 1, "watch_secs": 45, > "rollback_on_failure": true, "max_per_shard_failures": 0, > "max_total_failures": 0}, "name": "cron_hello_jing", "max_task_failures": 1, > "cron_collision_policy": "CANCEL_NEW", "enable_hooks": false, "instances": 1, > "task": {"processes": [{"daemon": false, "name": "hello_jing", "ephemeral": > false, "max_failures": 1, "min_duration": 5, "cmdline": "echo 'cron hello > jing'", "final": false}], "name": "cron_hello_jing", "finalization_wait": 30, > "max_failures": 1, "max_concurrency": 0, "resources": {"gpu": 0, "disk": > 8388608, "ram": 1048576, "cpu": 1.0}, "constraints": []}, "production": false, "role": "www-data", "tier": "preemptible", "lifecycle": {"http": {"graceful_shutdown_endpoint": "/quitquitquit", "port": "health", "shutdown_endpoint": "/abortabortabort"}}, "priority": 0} > ``` > > > vagrant@aurora:~$ aurora job inspect > devcluster/www-data/devel/cron_hello_jing /tmp/test.json --read-json > ``` > Job level information > name: 'cron_hello_jing' > role: 'www-data' > cluster: 'devcluster' > instances: '1' > cron: > schedule: '*/10 * * * *' > policy: 'CANCEL_NEW' > service: False > production: False > > Task level information > name: 'cron_hello_jing' > > Process 'hello_jing': > cmdline: > echo 'cron hello jing' > ``` > > > Thanks, > > Jing Chen > >
