Start-Job endpoint: Add option to start Jobs that our job is dependent on
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
2025-05-19 19:57:51 +02:00
parent 7b38d0aa2b
commit aa67c11050
2 changed files with 22 additions and 3 deletions

View File

@ -118,6 +118,17 @@ public abstract class Job
protected abstract IEnumerable<Job> RunInternal(PgsqlContext context);
public List<Job> GetDependenciesAndSelf()
{
List<Job> ret = new ();
foreach (Job job in DependsOnJobs)
{
ret.AddRange(job.GetDependenciesAndSelf());
}
ret.Add(this);
return ret;
}
public override string ToString()
{
return $"{JobId}";