Commit a916917b authored by Wout De Nolf's avatar Wout De Nolf

[doc]

parent 16e61969
......@@ -14,7 +14,7 @@ Run an OAR job that prints "Hello world":
from oarpy.oarjob import submit
job = submit(command='echo "Hello word"', name='helloword',
project='oarpy', core=1, gpu=False)
project='oarpy', core=1, gpu=False, walltime={'hours':2})
print(job)
job.wait()
......
......@@ -13,20 +13,20 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Job(1130922)\n",
"Job(1131384)\n",
" name = quickstart\n",
" project = oarpy\n",
" state = Waiting\n",
" owner = denolf\n",
" runtime = 0:00:00\n",
".............\n",
"..............\n",
"Succes:\n",
"Hello word\n",
"\n"
......@@ -37,7 +37,7 @@
"from oarpy.oarjob import submit\n",
"\n",
"job = submit(command='echo \"Hello word\"', name='quickstart',\n",
" project='oarpy', core=1, gpu=False)\n",
" project='oarpy', core=1, gpu=False, walltime={'hours':2})\n",
"print(job)\n",
"job.wait()\n",
"\n",
......@@ -62,25 +62,25 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Job(1130922)\n",
"Job(1131384)\n",
" name = quickstart\n",
" project = oarpy\n",
" state = Terminated\n",
" owner = denolf\n",
" runtime = 0:00:16\n"
" runtime = 0:00:07\n"
]
}
],
"source": [
"from oarpy.oarjob import Job\n",
"job = Job(1130922)\n",
"job = Job(1131384)\n",
"print(job)"
]
},
......@@ -93,14 +93,14 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[Job(1130922)]\n"
"[Job(1131384)]\n"
]
}
],
......@@ -110,7 +110,7 @@
"import os\n",
"\n",
"owner = os.getlogin()\n",
"start = timeutils.add(timeutils.now(), minutes=-10)\n",
"start = timeutils.add(timeutils.now(), minutes=-3)\n",
"jobs = search(owner=owner, start=start, name='quickstart',\n",
" project='oarpy', state='Terminated')\n",
"print(jobs)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment