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] Device target status incorrect when re-executing a failed step. #4211

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Agnul97
Copy link
Contributor

@Agnul97 Agnul97 commented Mar 5, 2025

Before this PR, you had a bug reproducible with these steps:

Create a Job with a single target

ensure the target device has device command enabled

ensure the device is connected before starting the job

Add three steps each one executing command “sleep 20”

Run the job

Make execution of the command fail in the middle of step with index “1”.

For example “kill” the device.

After a while the target status should be PROCESS_FAILED and Job should have terminated its execution

Execute the same job again

During re-execution of step with index “1” the state reported is PROCESS_FAILED which is not correct.

Expected behaviour:

During re-execution of step with index “1” the state reported should be PROCESS_AWAITING (for an asynchronous operation it should be AWAITING_COMPLETION or NOTIFIED_COMPLETION).

In this PR I fixed the bug restoring the expected behavior

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants