Skip to content

fix: exclude storage_size from job list serializer - #296

Open
erick-GeGe wants to merge 1 commit into
mainfrom
fix/remove-storage-size-from-job-list-serializer
Open

fix: exclude storage_size from job list serializer#296
erick-GeGe wants to merge 1 commit into
mainfrom
fix/remove-storage-size-from-job-list-serializer

Conversation

@erick-GeGe

@erick-GeGe erick-GeGe commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

  • Remove storage_size calculation from SpiderJobSerializer (used in list endpoints)
  • Add SpiderJobDetailSerializer that includes storage_size, used only in job retrieve
  • Prevents collStats being called N×3 times per list request, which was exhausting MongoDB file descriptors with 30k+ collections

Issue

  • Github Issue ID.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have made corresponding changes to the documentation.
  • New and existing tests pass locally with my changes.
  • If this change is a core feature, I have added thorough tests.
  • If this change affects or depends on the behavior of other estela repositories, I have created pull requests with the relevant changes in the affected repositories. Please, refer to our official documentation.
  • I understand that my pull request may be closed if it becomes obvious or I did not perform all of the steps above.

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.

1 participant