Jobs progress tracking
Review job progress and details (console)
See Import metadata (console) or Export metadata (console) to start a bulk job.
Job progress overview in the AWS IoT SiteWise console:
-
Navigate to the AWS IoT SiteWise console
. -
Choose Bulk operations New from the navigation pane.
-
The Jobs progress table in the AWS IoT SiteWise console, displays the list of bulk operation jobs.
-
The Job type column describes if it's an export or import job. The Date imported columns display the date that the job started.
-
The Status column displays the status of the job. You can select a job to see details about the job.
-
The selected job shows Success upon being successful, or a list of failure if the job failed. An error description is also displayed with each resource type.
Job details overview in the AWS IoT SiteWise console:
The Jobs progress table in the AWS IoT SiteWise console, displays the list of bulk operation jobs.
-
Choose a job to see more details.
-
For an import job, the
Data source ARNrepresents the Amazon S3 location of the import file. -
For an export job, the
Data destination ARNrepresents the Amazon S3 location of the file after the export. -
The
StatusandStatus reason, provide additional details on the current job. See Jobs progress tracking and error handling for more details. -
The
Queued positionrepresents the position of the job in the process queue. The jobs are processed one at a time. A queued position of 1, indicates that the job will be processed next. -
The jobs details page also displays the job progress counts.
-
The job progress count types are:
-
Total resources– Indicates the total count of assets in the transfer process. -
Succeeded– Indicates the count of assets successfully transferred during the process. -
Failed– Indicates the count assets that failed during the process. -
Skipped– Indicates the count of assets that were skipped during the process.
-
-
-
A job status of
PENDINGorVALIDATING, displays all the jobs progress counts as–. This indicates that the jobs progress counts are being evaluated. -
A job status of
RUNNINGdisplays theTotal resourcescount, the job submitted for processing. The detailed counts (Succeeded,Failed, andSkipped), apply to the processed resources. The sum of the detailed counts is lesser than theTotal resourcescount, until the job's status isCOMPLETEDorERROR. -
If a job's status is
COMPLETEDorERROR, theTotal resourcescount equals the sum of the detailed counts (Succeeded,Failed, andSkipped). -
If a job's status is
ERROR, check the Job failures table for details about the specific errors and failures. See Inspect error details (console) for more details.
Review job progress and details (AWS CLI)
After starting a bulk operation, you can check or update its status using the following API actions:
-
To retrieve information on a specific job, use the GetMetadataTransferJob API action.
Retrieve information with the
GetMetadataTransferJobAPI:-
Create and run a transfer job. Call the
GetMetadataTransferJobAPI.Example AWS CLI command:
aws iottwinmaker get-metadata-transfer-job \ --metadata-transfer-job-idyour_metadata_transfer_job_id\ --regionyour_region -
The
GetMetadataTransferJobAPI returns aMetadataTransferJobProgressobject with the following parameters:-
succeededCount – Indicates the count of assets successfully transferred in the process.
-
failedCount – Indicates the count of assets that failed during the process.
-
skippedCount – Indicates the count of assets that were skipped during the process.
-
totalCount – Indicates the total count of assets in the transfer process.
These parameters indicate the job progress status. If the status is
RUNNING, they help track the number of resources still to be processed.If you encounter schema validation errors, or if failedCount is greater than or equal to 1, the job progress state turns to
ERROR. A full error report for the job is placed in your Amazon S3 bucket. See Inspect errors for AWS IoT SiteWise for more details. -
-
-
To list current jobs, use the ListMetadataTransferJobs API action.
Use a JSON file to filter the returned jobs based on their current state. See the following procedure:
-
To specify the filters you want to use, create an AWS CLI input JSON file. want to use:
{ "sourceType": "s3", "destinationType": "iottwinmaker", "filters": [{ "state": "COMPLETED" }] }For a list of valid
statevalues, see ListMetadataTransferJobsFilter in the AWS IoT TwinMaker API Reference Guide. -
Use the JSON file as an argument in the following AWS CLI example command:
aws iottwinmaker list-metadata-transfer-job --regionyour_region\ --cli-input-json file://ListMetadataTransferJobsExample.json
-
-
To cancel a job, use the CancelMetadataTransferJob API action. This API cancels the specific metadata transfer job, without affecting any resources already exported or imported:
aws iottwinmaker cancel-metadata-transfer-job \ --regionyour_region\ --metadata-transfer-job-idjob-to-cancel-id