Skip to content

Commit

Permalink
fix fusion params
Browse files Browse the repository at this point in the history
  • Loading branch information
evieira2 committed Jul 29, 2024
1 parent 11ba0fe commit 05750fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions singlestoredb/fusion/handlers/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:

parameters = None
if params.get('with_parameters'):
parameters = []
parameters = {}
for name, value in params['with_parameters'].items():
parameters.append((name, value))
parameters[name] = value

execution_interval_in_mins = params['execute_every'][0]['interval']
time_unit = params['execute_every'][-1]['time_unit'].upper()
Expand Down Expand Up @@ -228,9 +228,9 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:

parameters = None
if params.get('with_parameters'):
parameters = []
parameters = {}
for name, value in params['with_parameters'].items():
parameters.append((name, value))
parameters[name] = value

job = jobs_manager.run(
params['notebook_path'],
Expand Down

0 comments on commit 05750fe

Please sign in to comment.