Replies: 1 comment
-
|
looking back to this thread, it turns out that prefect spawned a task using a
hence setting to keep parallel execution of SQLMesh, use prefect ProcessPoolTaskRunner, ref: https://docs.prefect.io/v3/api-ref/python/prefect-task_runners#processpooltaskrunner |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just a tips for anyone who try to automate sqlmesh command with prefect, set MAX_FORK_WORKERS into 1 in your prefect deployment. It is due to sqlmesh is defaulted to use parallel loading when in linux env, and somehow that didn't works with prefect task that are executed inside a child process too. Setting the value into 1 will disable this sqlmesh behaviour
reference: https://sqlmesh.readthedocs.io/en/stable/reference/configuration/?h=max+fork+workers#parallel-loading
Beta Was this translation helpful? Give feedback.
All reactions