IoT Core OTA Job FAILED retry techniques

0

Hi there IoT people,

I am looking into the best practice approach to retrying an OTA update to failed devices.

Scenario:

"Let's say we ran an OTA update for 1000 devices, and 42 of them FAILED for some reason. We corrected the "reason" and now need to rerun the job for 42 devices only.

So, I looked thru the API's and I got as far as

Attach a lambda to a IoT Rule that filters for Completed events, as per

The next logical step is call ListJobExecutionsForJob, passing in the job Id, filtering for FAILED jobs only.

But I can't see a way to marry up the Execution to a Thing, because you need the thing name to call DescribeJobExecution.

Do you need to use Fleet Indexing, or is there a better way to programmatically get the list of failed Things for an OTA Job, so we can alert / report / build retry tooling?

Thanks!

AWS
질문됨 4년 전461회 조회
1개 답변
0
수락된 답변

ListJobExecutionsForJob returns the ThingArn which is arn:aws:iot:<region><account-id>:thing/<thing-name>. You can extract the ThingName from that.

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인