Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #879 from bacongobbler/fix-getjobs
Browse files Browse the repository at this point in the history
fix: get jobs that are valid GUIDs
  • Loading branch information
bacongobbler authored Jun 14, 2022
2 parents 2004fd0 + cbad56f commit 050dcce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Infrastructure/Services/NomadJobService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ private Fermyon.Nomad.Model.Task GenerateJobTask(NomadJob nomadJob)
try
{
var jobs = _jobsClient.GetJobs()
.Where(job => Guid.TryParse(job.ID, out _))
.Select(job => new NomadJob(_configuration, Guid.Parse(job.ID),
string.Empty,
string.Empty,
Expand Down

0 comments on commit 050dcce

Please sign in to comment.