Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job transitions in state other than RUNNABLE are not collected #17

Open
adamantike opened this issue Jun 10, 2022 · 2 comments
Open

Job transitions in state other than RUNNABLE are not collected #17

adamantike opened this issue Jun 10, 2022 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@adamantike
Copy link
Contributor

adamantike commented Jun 10, 2022

We have deployed this project to our AWS account, but after triggering AWS Batch jobs, we only get metrics for the RUNNABLE state.

This is an example of CloudWatch error log for when the State Machine tries to run for a state transition.

{"id":"10","type":"ChoiceStateEntered","details":{"input":"{"LastEventType":"SUCCEEDED","JobQueue":"arn:aws:batch:us-east-1:123456789012:job-queue/prod-data-retrieval","JobName":"RetrieveData","Region":"us-east-1","LastEventTime":"2022-06-10T17:42:54Z","JobId":"096ad8ae-83c4-434e-b541-2114ecd19fa3","JobDefinition":"arn:aws:batch:us-east-1:123456789012:job-definition/prod-retrieve-data:78"}","inputDetails":{"truncated":false},"name":"Is Attempted?"},"previous_event_id":"9","event_timestamp":"1654882975216","execution_arn":"arn:aws:states:us-east-1:123456789012:express:JobStatesStateMachineServerless-DBT9CAIdCeAT:c9becabb-d991-4af7-a1ec-85586f8e1ea0_b47f626b-423e-4c9f-9380-14fd92de9c71:57741e9b-a01f-45ea-95ef-ad7e1f78eb72"}

{"id":"11","type":"ExecutionFailed","details":{"cause":"An error occurred while executing the state 'Is Attempted?' (entered at the event id #10). Unable to apply Path transformation to null or empty input.","error":"States.Runtime"},"previous_event_id":"0","event_timestamp":"1654882975216","execution_arn":"arn:aws:states:us-east-1:123456789012:express:JobStatesStateMachineServerless-DLU9BBIkCzEL:c9becabb-d991-4af7-a1ec-85586f8e1ea0_b47f626b-423e-4c9f-9380-14fd92de9c71:57741e9b-a01f-45ea-95ef-ad7e1f78eb72"}

It's worth to mention that we only use Fargate clusters, so we haven't tested if state transitions work correctly for EC2-based clusters.

@adamantike
Copy link
Contributor Author

@perifaws, based on your reaction, please let me know if I can help by providing more context/debugging info for this issue to be solved.

I haven't had the chance to dig deeper, but would really like for this project to support Fargate loads, so it's useful to a bigger audience!

@perifaws perifaws added good first issue Good for newcomers help wanted Extra attention is needed labels Dec 16, 2022
@perifaws
Copy link
Contributor

Hey @adamantike , Fargate is not supported at the moment. We'll evaluate adding it. Happy for contributions on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants