Skip to content

Commit a87da40

Browse files
committed
background queue
1 parent c74b573 commit a87da40

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

navigator/background/wrappers/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def __init__(
7676
self.jitter: float = jitter
7777
# Create the Job Record at status "pending"
7878
# generate a list of arguments accepted by JobRecord:
79-
job_args = {}
79+
job_args = {
80+
k: v for k, v in kwargs.items()
81+
if not k.startswith('_') and k in JobRecord.__fields__
82+
}
8083
content = kwargs.pop('content', None)
81-
for k, v in kwargs.items():
82-
if not k.startswith('_') and k in JobRecord.__fields__:
83-
job_args[k] = v
8484
self.job_record: JobRecord = JobRecord(
8585
name=self._name,
8686
content=content,

0 commit comments

Comments
 (0)