brash-continent-35249
01/20/2025, 11:46 AMRunner
API with decospecs
as an argument to the run()
method. I need to use the AWS Batch operator with different CPU and Memory specifications and at the moment I'm using as batch:cpu=1, memory=1024
. Can I specify these compute specs for each individual steps?crooked-jordan-29960
01/20/2025, 1:38 PMwith Runner("flow.py").run({"decospecs": ["batch"]}) as runner:
...
3) assuming all steps have the same config, leave steps without a compute/resources deco, and:
with Runner("flow.py").run({"decospecs": ["batch:cpu=1,memory=1024"]}) as runner:
...
Do either of these make sense in your scenario?brash-continent-35249
01/21/2025, 5:31 PMcrooked-jordan-29960
01/21/2025, 5:48 PMbrash-continent-35249
01/21/2025, 6:07 PMbrash-continent-35249
01/21/2025, 6:33 PMretry
and batch
?crooked-jordan-29960
01/21/2025, 8:09 PMRunner
does.
deployer = Deployer('flow.py', decospecs=['retry'])
deployed_flow = deployer.step_functions().create()
FYI @batch or @kubernetes would be redundant in the Deployer case.brash-continent-35249
01/22/2025, 2:07 PMbrash-continent-35249
01/22/2025, 2:30 PMcrooked-jordan-29960
01/22/2025, 5:25 PMbrash-continent-35249
01/22/2025, 5:46 PM# dataset intervals
start_date: ${now:"%Y-%m-%d"}
close_date: ${date_subtract_days:${.start_date}, 30}`
now is a hydra resolver and date_subtract_days is my resolver. I was already using the instantiate
method, however it wasn't for the these dates because I do not have a dataclass / a target for them. I was trying to use OmegaConf.resolve, but it didn't work... I don't remember exactly why right now, but maybe if I create a class for them hydra may resolve them, I'm going to test it!
the benefit is that I can specify a simple date like 2024-12-30
or ${date_subtract_days:%{.start_date}, 30}
without handling the logic in the class that builds the dataset itself.crooked-jordan-29960
01/22/2025, 6:21 PMcrooked-jordan-29960
01/22/2025, 7:31 PMbrash-continent-35249
01/22/2025, 10:52 PMlookback_days
config