Skip to content

Commit

Permalink
fix(RunInfo): add jobId to runInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Feb 21, 2024
1 parent 4aef2a4 commit 7e89158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/PollinationSDK/Wrapper/RunInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class RunInfo
public string ProjectName { get; private set; }
public string ProjectSlug => $"{ProjectOwner}/{ProjectName}";
public string RunSlug => $"{ProjectSlug}/{RunID}";
public string JobId { get; set; }
public RecipeInterface Recipe { get; private set; }

//[IgnoreDataMember]
Expand Down
3 changes: 2 additions & 1 deletion src/PollinationSDK/Wrapper/ScheduledJobInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ public RunInfo GetRunInfo(int runIndex)
}

var runInfo = new RunInfo(schJobInfo.CloudProject, firstRun);

// assign job id to runInfo, so that ListRunAssets could use
runInfo.JobId = schJobInfo.JobID;
_runInfoCache.Add(runIndex, runInfo);
return runInfo;
}
Expand Down

0 comments on commit 7e89158

Please sign in to comment.