Skip to content

Start tasks

Currently, it's you can interact with Datashare tasks using the /api/task/* HTTP APIs route of Datashare.

With Datashare and your worker running, you can now use the datashare-python CLI for that:

uvx datashare-python tasks --help

Basic worker

Let's create a task, monitor it and get its result:

uvx datashare-python tasks create hello_worlduvx datashare-python tasks watch <>uvx datashare-python tasks result <>

Advanced worker

First let's create

uvx datashare-python tasks create hello_worlduvx datashare-python tasks watch <>uvx datashare-python tasks result <>