Skip to content

Conversation

@jessevz
Copy link
Contributor

@jessevz jessevz commented Oct 27, 2025

No description provided.

@jessevz jessevz requested review from Copilot and s3inlc October 27, 2025 15:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the status calculation logic in the backend by optimizing how active agents and task progress are determined. The changes replace an inefficient chunk-by-chunk iteration with database aggregation queries for better performance.

Key Changes:

  • Replaced iterative chunk processing with database aggregation queries to calculate progress and timing
  • Modified status determination logic to use aggregated max time instead of per-chunk time checks
  • Changed activeAgents from returning agent IDs array to returning a count

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jessevz jessevz requested a review from gluafamichl October 28, 2025 09:21
@gluafamichl gluafamichl merged commit 18db8bc into dev Oct 29, 2025
2 checks passed
@gluafamichl gluafamichl deleted the task-status branch October 29, 2025 16:44
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.

3 participants