Module import? #749
-
Hi, I'm new to Hera and have a question on how this is supposed to work. All the examples only consist of one file that includes all the code. I tried to write very basic task/script in which I import a function from another module and execute it. This did not work at all. Here are is the code I used:
and the printer.py
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the question @MelvinKlein!
This is correct. The submitted function executes in a container. That container env must have all the imports available
Not at the moment. Hera does not have a running daemon/agent, GitHub Action, etc, that could do that atm. Does your org/personal project have a CI setup that can construct a Docker image upon pushing new code? That's one approach to use - push the code, build the image, create the workflow (with remote caching and what not building an image may not take too long) |
Beta Was this translation helpful? Give feedback.
Thanks for the question @MelvinKlein!
This is correct. The submitted function executes in a container. That container env must have all the imports available
Not at the moment. Hera does not have a running daemon/agent, GitHub Action, etc, that could do that atm. Does your org/personal project have a CI setup that can construct a Docker image upon pushing new code? That's one approach to use - push the code, build the image, create the workflow (with remote c…