Skip to content

Commit

Permalink
HEXA-1111 stringify env var
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarfil committed Dec 10, 2024
1 parent e1a1b2c commit 7c20389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hexa/pipelines/management/commands/pipelines_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def run_pipeline(run: PipelineRun):
"HEXA_RUN_ID": str(run.id),
"HEXA_PIPELINE_NAME": run.pipeline.name,
"HEXA_PIPELINE_TYPE": run.pipeline.type,
"HEXA_LOG_LEVEL": run.log_level,
"HEXA_LOG_LEVEL": str(run.log_level),
}
if run.pipeline.type == PipelineType.NOTEBOOK:
env_vars.update({"HEXA_NOTEBOOK_PATH": run.pipeline.notebook_path})
Expand Down
2 changes: 1 addition & 1 deletion hexa/pipelines/tests/test_pipelines_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_env_vars(self, _, mock_run_pipeline_docker):
"HEXA_RUN_ID": "123",
"HEXA_PIPELINE_NAME": "test_pipeline",
"HEXA_PIPELINE_TYPE": PipelineType.NOTEBOOK,
"HEXA_LOG_LEVEL": PipelineRunLogLevel.DEBUG,
"HEXA_LOG_LEVEL": str(PipelineRunLogLevel.DEBUG),
"HEXA_NOTEBOOK_PATH": "/path/to/notebook",
}
mock_run_pipeline_docker.assert_called_once_with(
Expand Down

0 comments on commit 7c20389

Please sign in to comment.