开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜