[go: up one dir, main page]

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

[dy] Optimize pipeline schedules LIST api #4058

Merged
merged 13 commits into from
Dec 8, 2023
Prev Previous commit
Next Next commit
[dy] Update comments
  • Loading branch information
dy46 committed Dec 8, 2023
commit c10a0039131cbf602452bc2c86cbc74b90d6f4e4
6 changes: 3 additions & 3 deletions mage_ai/api/resources/PipelineScheduleResource.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def collection(self, query_arg, meta, user, **kwargs):
schedules = query.all()
schedule_ids = [schedule.id for schedule in schedules]

# Get the number of pipeline runs and in progress pipeline runs for each pipeline schedule
# in a single query. The result of this query will be a record of
# (pipeline_schedule_id, pipeline_runs_count, in_progress_runs_count).
# Get fields to be returned in a single query. The result of this query
# will be a record of (pipeline_schedule_id, pipeline_runs_count,
# in_progress_runs_count, last_pipeline_run_id).
counts_query = (
PipelineRun.select(
PipelineRun.pipeline_schedule_id,
Expand Down
Loading