Closed euclidgame closed 6 days ago
@cblmemo PTAL, thanks!
It seems some additional handling is required for generating bucket names.
import sky
from sky import Resources
from sky.optimizer import OptimizeTarget
with sky.Dag() as dag:
task1 = sky.Task(name="task1", run="echo 'Hello, world!'")
task1.set_resources(Resources(cpus=8))
task2 = sky.Task(name="task2", run="echo 'Hello, world!'")
task2.set_resources(Resources(cpus=8))
(task1 >> task2).with_data('/tmp/data', '/tmp/data', 30)
sky.optimize(dag, OptimizeTarget.TIME)
Please make sure this works for #4364. cc @andylizf
@cblmemo Please take a look
This PR consider data storage in optimizations and executions of workflows that involve data transfer between tasks.
Tested (run the relevant ones):
bash format.sh
examples/dag/diamond.yml
)pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh