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

fix: Do not multiply session occupying slots #3186

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Dec 2, 2024

resolves #3187

Whenever _transit_session_status() is called, it accumulates session's occupying slots

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • API server-client counterparts (e.g., manager API -> client SDK)

@fregataa fregataa added this to the 24.09 milestone Dec 2, 2024
@fregataa fregataa self-assigned this Dec 2, 2024
@github-actions github-actions bot added comp:manager Related to Manager component size:XS ~10 LoC labels Dec 2, 2024
@fregataa fregataa changed the title fix: Do not accumulate session occupying slots fix: Do not multiply session occupying slots Dec 2, 2024
@fregataa fregataa requested a review from HyeockJinKim December 3, 2024 07:24
session_occupying_slots = ResourceSlot.from_json({**session_row.occupying_slots})
session_occupying_slots = ResourceSlot()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The current code seems a bit tricky to write test code... 😢
Have you tried verifying that it works?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah I tested it

@fregataa fregataa requested a review from HyeockJinKim December 5, 2024 08:33
@kyujin-cho kyujin-cho added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit 59a1190 Dec 6, 2024
23 checks passed
@kyujin-cho kyujin-cho deleted the fix/not-accumulate-session-occupying-slot branch December 6, 2024 12:52
lablup-octodog pushed a commit that referenced this pull request Dec 6, 2024
Backported-from: main (24.12)
Backported-to: 24.09
Backport-of: 3186
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compute session's occupying slots are stored as abnormal multiples
3 participants