Returns True if running in AWS Batch, False otherwise.
()
| 7 | |
| 8 | |
| 9 | def is_running_in_aws_batch() -> bool: |
| 10 | """Returns True if running in AWS Batch, False otherwise.""" |
| 11 | return os.getenv("AWS_BATCH_JOB_ID") is not None |
| 12 | |
| 13 | |
| 14 | def get_aws_metadata() -> dict: |
no outgoing calls
no test coverage detected