def stop_if_running_for(stackname, minimum_minutes='30'):
"""If a EC2 node has been running for a time greater than minimum_minutes, stop it.
The assumption is that stacks where this command is used are not needed for long parts of the day/week, and that who needs them will call the start task first."""
return lifecycle.stop_if_running_for(stackname, int(minimum_minutes))
评论列表
文章目录