开发者

Get the number of completed steps in an Amazon Elastic MapReduce jobflow via boto

开发者 https://www.devze.com 2023-03-05 18:12 出处:网络
To avoid the overhead of setting up instances everytime I submit a job, I use a jobflow that\'s always in waiting mode after each job completion.However, according to this page, \"a maximum of 256 ste

To avoid the overhead of setting up instances everytime I submit a job, I use a jobflow that's always in waiting mode after each job completion. However, according to this page, "a maximum of 256 steps are allowed in each job flow."

Is there a way to get the number of completed steps in a 开发者_如何学JAVAjobflow via the boto API? I wasn't able to find a way using the boto.emr.emrobject.JobFlow class.


I figured it out. Even though the boto docs don't go into details, testing it interactively in iPython shows that len(jobflow.steps) will do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号