I have an AWS IoT Thing Group which includes some in-progress continuous jobs. When a device is added to the thing group, I want the continuous jobs must be processed as the order they were posted. However, look like the job executions are queued into my device in reverse order where the newest job is pushed first and so on.
I tried to search somewhere mention about the order of AWS IoT continuous job executions queued on the device but found nothing.
I wonder if I missed any configurations when I created the continuous jobs or the reverse order is the behavior of AWS IoT.
@brushtakopo Thanks for your answer.
My AWS IoT thing group has 4 in-progress continuous jobs like this https://drive.google.com/file/d/1Lg4ndjcZ8Htd7YUqX7FIuIG8erNkvE2O/view
You can see the jobs creation order older to newer is
e_2c2df204-6d7e-44e7-9257-c2e705ec6b90
-->e_7e432f0a-41c4-4a2b-9e45-8debaca7ef90
-->e_3ca6819b-7bdb-4ad4-8c0c-6e00bb24774e
-->e_b5406181-56cc-4d12-b043-586c4b06e0a4
.In my device, I subscribe the topic
$aws/things/thingName/jobs/notify-next
. When I add this device to the thing group, thenotify-next
messages are fetched as order below (bottom one is fetched first).Can I have the
notify-next
is fired as order that I created the continuous jobs?I don't think subscribe
notify
could help because it sends 4 jobs at a time that I don't know the order.Thanks!