Skip to content

Commit

Permalink
using job class instead of hardcodced Job (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilongin authored Sep 4, 2024
1 parent 767f8e0 commit cbd20f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datachain/data_storage/metastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ def _jobs_update(self, *where) -> "Update":
return self._jobs.update().where(*where)

def _parse_job(self, rows) -> Job:
return Job.parse(*rows)
return self.job_class.parse(*rows)

def _parse_jobs(self, rows) -> Iterator["Job"]:
for _, g in groupby(rows, lambda r: r[0]):
Expand Down

0 comments on commit cbd20f2

Please sign in to comment.