feat: add WorkloadExecuting status to evaluation runs#1391
Open
feat: add WorkloadExecuting status to evaluation runs#1391
Conversation
Create eval runs with WorkloadExecuting status (4) instead of IN_PROGRESS (1) to distinguish agent execution from evaluation/scoring. After agent execution completes, transition to IN_PROGRESS before running evaluators. - Add WORKLOAD_EXECUTING=4 to EvaluationStatus enum - Add AGENT_EXECUTION_COMPLETED event and AgentExecutionCompletedEvent model - Create eval runs with WorkloadExecuting status in _create_eval_run_spec - Publish AGENT_EXECUTION_COMPLETED after agent finishes in _execute_eval - Handle event in StudioWebProgressReporter to update status to IN_PROGRESS Flow: WorkloadExecuting (agent runs) → Running (evaluators run) → Completed/Failed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorkloadExecutingstatus to distinguish agent execution from evaluation/scoring in the eval run lifecycleWorkloadExecuting(4) status instead ofIN_PROGRESS(1)AGENT_EXECUTION_COMPLETEDevent transitions the run toIN_PROGRESSbefore evaluators executeWorkloadExecuting → Running → Completed/FailedDepends on https://github.com/UiPath/Agents/pull/4529
Changes
events.py: AddAGENT_EXECUTION_COMPLETEDevent type andAgentExecutionCompletedEventmodelruntime.py: PublishAGENT_EXECUTION_COMPLETEDafter agent finishes, before evaluators run_progress_reporter.py: AddWORKLOAD_EXECUTING=4to enum, create eval runs with new status, handle event to transition toIN_PROGRESSRelated
Test plan
WorkloadExecutingstatusRunningafter agent execution completesCompleted/Failedafter evaluators finishpytest tests/cli/eval/)🤖 Generated with Claude Code