How to configure retries on OTA jobs on the IoT Core

0

I´ve been trying to configure retries on OTA Jobs on the IoT Core, but i can´t find the configuration on the console; it seems that the retries configuration it´s only available for non-ota jobs, is there any way to do this?. I also tried to generate a ota job, an then generate a template for this job and there i could add the retries, but it makes no sense to do it this way since the template its based on a ota job that its executing or has already been executed.

Hopefully someone can helps best regards!

1回答
1
承認された回答

Hi Giovanni. Retry configuration is currently not supported by CreateOTAUpdate. So you can not do it, in one step, from the console, the CLI, or the SDKs.

it makes no sense to do it this way since the template its based on a ota job that its executing or has already been executed

If you want to do it all from the console, the template method is currently the only way. You could create a dummy thing in the registry, and create an OTA update job that targets it. Then cancel the job. Then create a template from the job, adding retries. Ugly, but it will work.

If you are willing to use SDKs or the CLI, you can construct the OTA job document yourself. An OTA update is really just a job with a predefined job document. A call to CreateOTAUpdate will also call CreateJob. If you use MQTT protocol, and sign the file, CreateOTAUpdate may (depending on what options you use) additionally call StartSigningJob and CreateStream. This is the magic of CreateOTAUpdate; it bundles all this into one (complex) operation. However, you could do these calls yourself to create and obtain the stream name and signature to use in the job document. Then create the job document.

Once you have the job document, you can call CreateJob or CreateJobTemplate. Or indeed return to the console to use the job document.

profile pictureAWS
エキスパート
Greg_B
回答済み 10ヶ月前
profile picture
エキスパート
レビュー済み 10ヶ月前
  • I understand!, thanks you very mych Greg!!!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ