You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
returnpaginatedJobs,nil// Return as-is if parsing fails
508
+
// Handle pagination and add optimization tip
509
+
hasMore:=len(jobs.Jobs)>CursorPageSize
510
+
jobsToReturn:=jobs.Jobs
511
+
ifhasMore {
512
+
jobsToReturn=jobs.Jobs[:CursorPageSize]
520
513
}
521
514
522
515
response:=map[string]any{
523
-
"items":paginatedData.Items,
524
-
"moreData":paginatedData.MoreData,
525
-
"cursor":paginatedData.Cursor,
516
+
"jobs":jobsToReturn,
517
+
"moreData":hasMore,
526
518
"optimization_tip":"For debugging failed jobs, consider using get_job_logs with failed_only=true and run_id="+fmt.Sprintf("%d",runID)+" to get logs directly without needing to list jobs first",