Justin
06/24/2023, 7:34 PMRuntimeError: PID 29636 failed with return code 1.
and with another section saying:
OneDrive\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because running scripts is disabled
on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
My code and more info in this thread:Justin
06/24/2023, 7:35 PM@task(name="dbt modelling")
def dbt_model():
dbt_path = Path(f"dbt/my_project_name")
dbt_run = DbtCoreOperation(
commands=[ "dbt debug"],
project_dir=dbt_path,
profiles_dir=dbt_path,
)
dbt_run.run()
return
After further investigation, I found a thread that seems to have a solution to my issue. However, It requires me to conduct admin assess to PowerShell and change ExecutionPolicy from R*estricted* to Unrestricted, which I don't think is a feasible solution if you work in an organization. I wonder if this is something that could be fixed without needing to tamper with admin assess and/or ExecutionPolicy?
https://prefect-community.slack.com/archives/C0470L5UV2M/p1684453953716139Sean Williams
06/26/2023, 7:13 PMprefect-dbt
, or does it happen with any Prefect flow?Justin
06/28/2023, 5:35 AM