Hedgar10/03/2022, 3:08 PM
Hedgar10/03/2022, 6:53 PM
Hedgar10/04/2022, 11:17 AM
Hedgar10/04/2022, 4:45 PM
doesn’t allow installation from requirement.txt file. I have tried by copying the
file and running
but alway end with error that “no such file found”.-cant’ build. What do you think could be wrong? Although I observed in the template you install the packages directly.
pip install -r requirement.txt
you can also list packages this way:
ADD requirements.txt .
RUN pip install prefect requests pandas package1 package2 package3 package4
Hedgar10/04/2022, 7:39 PM
inside it I have several
files each with a task function. also inside this directory I have
in this py file I imported the various task function which I called under a flow e.g
from nnfm import get_nnfm_ideas
from sofia import get_sofia_ideas
@flow(name="run all ideas")
I was able to run locally successfully by doing:
def gather_all_ideas(): get_nnfm_ideas() get_sofia_ideas() #def handler(event,context): gather_all_ideas() if __name__ == "__main__": gather_all_ideas()
My challenge is how to represent in
file to run “serverlessly” I have tried but all I get is “module engineroom not found” sorry for taking your time!