Skip to content

Commit d5dd359

Browse files
committed
fix header layer
1 parent 03b6a1c commit d5dd359

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

samples/service_clients/commands/commands-sandbox/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ command executions stream is determined by `device type`, `device ID`, and `payl
532532
and `device ID` will be constant, so the application needs to check `payload format`. Notice that Aws IoT Commands service
533533
distinguishes only JSON and CBOR, all other payload format will be routed to the generic stream.
534534

535-
#### What is the proper generic architecture for a command-processing application running on a device?
535+
### What is the proper generic architecture for a command-processing application running on a device?
536536

537537
1. On startup, create and open streaming operations for the needed AWS IoT command events using
538538
`IClientV2::CreateCommandExecutionsJsonPayloadStream`, `IClientV2::CreateCommandExecutionsCborPayloadStream`,

samples/service_clients/jobs/jobs-sandbox/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,23 +335,24 @@ aws iot delete-job --job-id QuestionableJob
335335
Deleting a job fails if an incomplete (non success/failure) job execution exists for the job.
336336

337337
## FAQ
338-
#### What happens if I call `StartNextPendingJobExecution` and there are no jobs to execute?
338+
### What happens if I call `StartNextPendingJobExecution` and there are no jobs to execute?
339339
The request will not fail, but the `execution` field of the response will be empty, indicating that there is nothing to do.
340340

341-
#### What happens if I call `StartNextPendingJobExecution` twice in a row (or while another job is in the IN_PROGRESS state)?
341+
### What happens if I call `StartNextPendingJobExecution` twice in a row (or while another job is in the IN_PROGRESS state)?
342342
The service will return the execution information for the IN_PROGRESS job again.
343343

344-
#### What if I want my device to handle multiple job executions at once?
344+
### What if I want my device to handle multiple job executions at once?
345345
Since `startNextPendingJobExecution` does not help here, the device application can manually update a job execution from the QUEUED state to the IN_PROGRESS
346346
state in the same manner that it completes a job execution: use `getPendingJobExecutions` to get the list of queued executions and use
347347
`updateJobExecution` to move one or more job executions into the IN_PROGRESS state.
348348

349-
#### What is the proper generic architecture for a job-processing application running on a device?
349+
### What is the proper generic architecture for a job-processing application running on a device?
350350
A device's persistent job executor should:
351351
1. On startup, create and open streaming operations for both the JobExecutionsChanged and NextJobExecutionChanged events
352352
2. On startup, get and cache the set of incomplete job executions using `GetPendingJobExecutions`
353353
3. Keep the cached job execution set up to date by reacting appropriately to JobExecutionsChanged and NextJobExecutionChanged events
354354
4. While there are incomplete job executions, start and execute them one-at-a-time; otherwise wait for a new entry in the incomplete (queued) job executions set.
355+
355356
## ⚠️ Usage disclaimer
356357

357358
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).

0 commit comments

Comments
 (0)