Documentation

Getting started

$ python3 -m venv venv
$ . venv/bin/activate
$ pip install qarnot
import qarnot
conn = qarnot.connection.Connection(client_token="<<<MY_SECRET_TOKEN>>>")
task = conn.create_task('hello world', 'docker-batch', 4)
task.constants['DOCKER_CMD'] = 'echo hello world from node ${INSTANCE_ID}!'
task.run()
print(task.stdout())
$ python helloworld.py
1> hello world from node 1!
3> hello world from node 3!
0> hello world from node 0!
2> hello world from node 2!

Any feedback on this page ?

© Qarnot Computing