aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.46k stars 399 forks source link

Get success/failure return codes from Copilot Job #5669

Open vshah11 opened 6 months ago

vshah11 commented 6 months ago

I have a copilot job that runs on a set schedule. I need to know if there is any way to detect success or failure from within the job run.

vshah11 commented 6 months ago

The existing issue that I could find on this topic - #4939 Would be helpful to know if there has been any update after this.

KollaAdithya commented 6 months ago

Hey @vshah11 ! Can you use the workaround shared by @bvtujo in this comment

Does this work in your case

vshah11 commented 6 months ago

The work around does work in my case, but it would be nice to track the job execution status without having to access the state machine and its ARN.

KollaAdithya commented 6 months ago

Agree on this. Definitely it would be nice to have command like copilot job status that will log the status of the recently executed jobs/state machine.