Skip to content

Commit

Permalink
reload job use bash intead of sh
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet authored Mar 1, 2024
1 parent f925531 commit e90a528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/charts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e90a528

Please sign in to comment.