Skip to content

fix(be): tasks order when max parallel tasks provided #2826

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fiftin
Copy link
Collaborator

@fiftin fiftin commented Mar 24, 2025

No description provided.

@fiftin fiftin requested a review from Copilot April 13, 2025 18:51
Copy link
Contributor

@Copilot 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.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


if curr.Task.Status == task_logger.TaskFailStatus {
//delete failed TaskRunner from queue
p.Queue = slices.Delete(p.Queue, i, i+1)
Copy link
Preview

Copilot AI Apr 13, 2025

Choose a reason for hiding this comment

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

Deleting an element from p.Queue while iterating in ascending order may cause the next element to be skipped due to index shifting; consider iterating backwards or resetting the loop index after a deletion.

Copilot uses AI. Check for mistakes.

@fiftin fiftin requested a review from mgukov April 25, 2025 15:48
@fiftin fiftin assigned fiftin and mgukov and unassigned fiftin Apr 25, 2025
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