<@U02GMEZU18B> is it possible turn a schedule active/inactive via prefect.yaml?
t
@Nate is it possible turn a schedule active/inactive via prefect.yaml?
n
hi @Thang Le - coming back from vacation here yes! each schedule object has an
active
bool field
t
No worries! Is it also possible to use PEX within Prefect? Klaviyo's whole playgorund system revolves around PEX within S3 for quick exec, was wondering if this is something that can be done
n
huh. i haven't experimented much with PEX but you might be interested in this: https://docs.prefect.io/v3/advanced/submit-flows-directly-to-dynamic-infrastructure#how-to-submit-flows-directly-to-dynamic-infrastructure ie, bundle containing deps goes to s3, gets pulled down at runtime and executed
but generally non-standard setup related to deps in prefect can happen in
pull
steps, overridden
command
job variables, or your Dockerfile
t
yeah that's what we're trying to do our overall plan is to: • create a kubernetes workpool • create a pex file with only dependencies (this should not be updated frequently) in s3 bukcet • create another pex file with only the pex code (this gets upload/updated every time there's a code change) in s3 bucket • create a deployment system that pulls both pex files from s3 and exec it
we want our code to run in kubernetes but for it to live in either an ECR as a docker or as EC2 with S3
n
seems reasonable (though again i don't have many priors around PEX)! let us know if you have prefect-related issues, or if it ends up working for you and you want to contribute an example