|
From: | Stephen Barrett |
Subject: | Re: [Fab-user] running parallel executions with different env.user |
Date: | Fri, 10 Nov 2017 22:42:09 +0000 |
Stephen Barrett From: Brandon Whaley [mailto:address@hidden
Hi Stephen, I'd probably take advantage of the fact that host strings in fabric can include the username using @ syntax: address@hidden def deploy(release): deployables = init_deployables(release) # API kill first hosts = set( '{}+address@hidden'.format( options['host'].upper(), options['host'] ) for options in deployables.values() ) kill_results = execute(apikill_apps, hosts=hosts) api_killed = any(kill_results.values()) if api_killed: print "Sleeping 20 seconds to let apps shutdown before attempting to task kill remainders" sleep(20) # Cleanup everything remaining with taskkill execute(taskkill_apps, hosts=hosts) On Thu, Nov 9, 2017 at 5:50 PM Stephen Barrett <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |