From e90a5281be0ffa65a96f7aeac8610992dcf833fa Mon Sep 17 00:00:00 2001 From: luutuankiet <56199834+luutuankiet@users.noreply.github.com> Date: Fri, 1 Mar 2024 05:26:33 -0500 Subject: [PATCH] reload job use bash intead of sh --- app/charts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/charts/main.py b/app/charts/main.py index a40c65c..57563e9 100644 --- a/app/charts/main.py +++ b/app/charts/main.py @@ -90,7 +90,7 @@ def get_table_nocache(query): dbt_cmd = "source /main/scrape-ticktick/.venv/bin/activate && source /main/scrape-ticktick/.env && dbt run" with open(log_path, "w") as output_file: - result = subprocess.run(f"{dbt_cmd}", shell=True, stdout=output_file, stderr=subprocess.STDOUT) + result = subprocess.run(f"{dbt_cmd}", shell=True, stdout=output_file, stderr=subprocess.STDOUT,executable="/bin/bash") # Read and display the output file content with open(log_path, "r") as output_file: