Task definitions were fleshed out and shipped in valohai-yaml 0.36.0 (released on Monday). They'll be supported in the web UI soon, but they should also be supported in the CLI, like pipeline definitions are.