Skip to content

Commit

Permalink
minor Job.metadata refactor
Browse files Browse the repository at this point in the history
to use equivalent code as Flow
  • Loading branch information
janosh committed Sep 18, 2024
1 parent afdbb1f commit 367836b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jobflow/core/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ def __init__(
function_args = () if function_args is None else function_args
function_kwargs = {} if function_kwargs is None else function_kwargs
uuid = suid() if uuid is None else uuid
metadata = {} if metadata is None else metadata
config = JobConfig() if config is None else config

# make a deep copy of the function (means makers do not share the same instance)
Expand All @@ -354,7 +353,7 @@ def __init__(
self.uuid = uuid
self.index = index
self.name = name
self.metadata = metadata
self.metadata = metadata or {}
self.config = config
self.hosts = hosts or []
self.metadata_updates = metadata_updates or []
Expand Down

0 comments on commit 367836b

Please sign in to comment.