Skip to content

[Bug]: Background tasks SELECT all run's job submissions #3459

@r4victor

Description

@r4victor

Steps to reproduce

  1. Create a run with many job submissions (e.g. a retry run that fails to provision due to no offers, may require adjusting _PENDING_RETRY_DELAYS to generate job submissions quickly).
  2. It's suspected this can lead to high memory usage but I'm yet to reproduce it locally.

Actual behaviour

These SELECTs may fetch too many rows:

Expected behaviour

Select only the necessary (latest) submissions for every job.

dstack version

master

Server logs

Additional information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions