red-fountain-16335
12/13/2022, 12:34 PMContainer Overrides length must be at most 8192
This is very similar to this issue (@square-wire-39606)
I tried updating to the latest metaflow version, but still have the same problemancient-application-36103
12/13/2022, 3:57 PMsquare-wire-39606
12/13/2022, 4:57 PMsquare-wire-39606
12/13/2022, 4:59 PMred-fountain-16335
12/13/2022, 5:53 PM--with=environment:vars='{"key":"value"}' to ensure the remote execution uses the appropriate env variable (prod instead of dev etc.)
I noticed when running the flow locally, it works fine if I set my local env variables (export …). But not sure how to enforce that into remote execution. Is there a special METAFLOW_ENVIRONMENT env variable I could use to keep track of that?red-fountain-16335
12/14/2022, 2:57 PM--with environment:vars approach I am able to execute the Flow from step functions
I am stuck now. What is the recommended way to define dev vs prod?
I tried using Parameter, but it does not work with step-functions create step. Only when triggering it.
But how can I define the parameter to be used on scheduled runs? I thought that was the whole point
As a work-around, I was able to set the env variables via cli. But clearly that causes problems when executing from step-functions.
I would like to schedule a training flow on a weekly basis, using prod keyword (for example, in the Flow code, it will retrieve data from and write outputs to the appropriate environment)
I would really appreciate your assistance on thisancient-application-36103
12/14/2022, 3:05 PMred-fountain-16335
12/14/2022, 3:11 PMSNOWFLAKE_ENV and MF_NAMESPACE, so I can control the snowflake and namespace to be usedred-fountain-16335
12/14/2022, 3:13 PMParameters there. But it seems silly/hacky
Surely this is a common enough use case that would/should be supported natively by Metaflow
What is the recommended way of doing this?ancient-application-36103
12/14/2022, 3:36 PM@environment . I am chasing down an issue where the payload that is sent to AWS Step Functions has gotten quite big and is impinging on the length of parameters that can be passed.ancient-application-36103
12/14/2022, 4:18 PMancient-application-36103
12/14/2022, 4:18 PMred-fountain-16335
12/14/2022, 4:59 PMLIMIT 1000 to a sql query - but not applicable by default
• Environment variables: define dev vs prod usage. When running/testing locally, os.getenv('ENV_NAME', 'dev') means it will fallback to dev as default value. But when running in production, as scheduled in step-functions, I can set the env variable `ENV_NAME=prod`:
So my CI/CD deployment looks like this, running on merge:
python <flow_name>.py --environment=conda --with=retry --with=card \
--with=environment:vars'{"ENV_NAME":"prod"}' \
step-functions create \
--tag prodcurved-island-17262
03/16/2023, 8:24 AM