Skip to content

Commit

Permalink
fix: job from job files visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandagadzhanyan committed Sep 25, 2024
1 parent 9ea8c63 commit cc1ef64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jobs/jobs/db_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def get_job_in_db_by_id(
job_needed = db.query(dbm.CombinedJob).with_for_update().get(job_id)
else:
job_needed = db.query(dbm.CombinedJob).get(job_id)

previous_jobs = get_jobs_in_db_by_ids(db, job_needed.previous_jobs)
for j in previous_jobs:
job_needed.files.extend(j.files)
return job_needed


Expand Down

0 comments on commit cc1ef64

Please sign in to comment.