HI community, I tried to setup a k3sjobs in for th...
# prefect-community
s
HI community, I tried to setup a k3sjobs in for the flow deployment, now, when I run_deployment(), a new job is created, image is being pulled but it eventually failed. stating:
/usr/bin/python: No module named prefect.engine.__main__; 'prefect.engine' is a package and cannot be directly executed
More info: in the logs of prefect agent, which looks fine.
Copy code
11:37:58.507 | INFO    | prefect.agent - Submitting flow run 'e7122502-521e-45aa-9d63-a015cf5aa436'
11:37:58.608 | INFO    | prefect.agent - Completed submission of flow run 'e7122502-521e-45aa-9d63-a015cf5aa436'
11:37:58.620 | INFO    | prefect.infrastructure.kubernetes-job - Job 'k3sjob-7ftqb': Pod has status 'Pending'.
11:39:38.012 | INFO    | prefect.infrastructure.kubernetes-job - Job 'k3sjob-7ftqb': Pod has status 'Running'.
but the args of k3s jobs pod is :
Copy code
containers:
    - name: prefect-job
      image: >-
        <custom-image-url>
      args:
        - python
        - '-m'
        - prefect.engine