Ovo Ojameruaye
12/17/2021, 10:44 PMKevin Kho
Ovo Ojameruaye
12/17/2021, 10:53 PMKevin Kho
prefect agent local start
in conda, then it should be from the same environmentOvo Ojameruaye
12/18/2021, 5:36 PMsys.path.append(DATA_DIR) #moved inside task
logger = prefect.context.get("logger")
@task()
def get_i():
sys.path.append(DATA_DIR)
fetch = importlib.import_module("logistics-pipeline")
//
//
<http://logger.info|logger.info>("Get Task Completed")
Aram Panasenco
12/20/2021, 11:51 PMRicardo Gaspar
02/09/2022, 2:04 PMKevin Kho
cloudpickle 2.0
has support for deepcopying of modules so maybe it will become possible. For now though, you need to either have the custom modules installed on the EC2 (if they don’t change often), or package it in a Docker container.
I am not seeing how you would get this working for both ECS and EC2 simultaneously because I think both will require configuration exposed by their respective RunConfigs