Skip to content

Commit

Permalink
remove_logged_job returns boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ashton22305 committed Nov 8, 2024
1 parent 8ed04a7 commit bee998d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/dashboard/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def job(job_id, cluster)
def remove_logged_job(job_id, cluster)
old_job = jobs.detect { |j| j.id == job_id && j.cluster == cluster }
Project.delete_job!(directory, old_job)

jobs.none? { |j| j.id == job_id && j.cluster == cluster }
end

def adapter(cluster_id)
Expand Down

0 comments on commit bee998d

Please sign in to comment.