Contenuto principale

parallel.cluster.generic.awsbatch.downloadJobLogFiles

Download AWS Batch job log files

Description

parallel.cluster.generic.awsbatch.downloadJobLogFiles(job,taskIDs,logStreams) downloads log files for the tasks in job with the IDs taskIDs from the log streams logStreams in AWS® CloudWatch Logs, and saves them to the JobStorageLocation of the cluster.

Note

This function requires the Parallel Computing Toolbox™ plugin for MATLAB® Parallel Server™ with AWS Batch. For an example of how to use the function, see the plugin scripts.

Input Arguments

collapse all

MATLAB AWS Batch job, specified as a parallel.job.CJSIndependentJob object.

Data Types: parallel.job.CJSIndependentJob

ID of the tasks to download logs for, specified as a numeric vector. Each task ID must have a corresponding log stream in logStreams.

Data Types: double

Amazon CloudWatch log streams that contain the log information for each task, specified as a cell array of character vectors or string array. Each log stream must have a corresponding task ID in taskIDs. You can get this information from the output of parallel.cluster.generic.awsbatch.getBatchJobInfo.

For more information on log streams, see the Amazon CloudWatch documentation.

Data Types: string | cell

Version History

Introduced in R2019b