diff --git a/core/python/bindings/src/core.cpp b/core/python/bindings/src/core.cpp index d216e268..c2dad580 100644 --- a/core/python/bindings/src/core.cpp +++ b/core/python/bindings/src/core.cpp @@ -440,6 +440,7 @@ void export_core(pybind11::module& m) { t.add(it->cast()); }, "Append stage(s) to the task's top-level container") + .def("insert", &Task::insert, "stage"_a, "before"_a = -1, "Insert stage before given index") .def("__len__", [](const Task& t) { t.stages()->numChildren(); }) .def( "__getitem__",