Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added docs/.nojekyll
Empty file.
66 changes: 0 additions & 66 deletions docs/_images/notebooks_hello_29_0.svg

This file was deleted.

7 changes: 7 additions & 0 deletions docs/_sources/modules.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
aapi
====

.. toctree::
:maxdepth: 4

aapi
119 changes: 5 additions & 114 deletions docs/_sources/notebooks/hello.ipynb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x28d6ebdab20>"
"<graphviz.graphs.Digraph at 0x2ef3e70af40>"
]
},
"execution_count": 10,
Expand Down Expand Up @@ -385,7 +385,7 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x28d6ec1bb80>"
"<graphviz.graphs.Digraph at 0x2ef3e75f940>"
]
},
"execution_count": 12,
Expand Down Expand Up @@ -465,7 +465,7 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x28d6eca1880>"
"<graphviz.graphs.Digraph at 0x2ef3e7e8520>"
]
},
"execution_count": 13,
Expand Down Expand Up @@ -498,115 +498,6 @@
"Job1 triggers Job2 and Job3, and Job4 is waiting for both Job2 and Job3 to complete."
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 8.0.2 (20230410.1723)\n",
" -->\n",
"<!-- Title: root Pages: 1 -->\n",
"<svg width=\"284pt\" height=\"153pt\"\n",
" viewBox=\"0.00 0.00 283.58 153.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 149)\">\n",
"<title>root</title>\n",
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-149 279.58,-149 279.58,4 -4,4\"/>\n",
"<g id=\"clust1\" class=\"cluster\">\n",
"<title>cluster_0</title>\n",
"<polygon fill=\"none\" stroke=\"black\" points=\"8,-8 8,-137 267.58,-137 267.58,-8 8,-8\"/>\n",
"<text text-anchor=\"middle\" x=\"137.79\" y=\"-121.8\" font-family=\"Times New Roman,serif\" font-size=\"14.00\">ChainedJobs</text>\n",
"</g>\n",
"<!-- ChainedJobs/Job1 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>ChainedJobs/Job1</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"44.6\" cy=\"-61\" rx=\"28.7\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"44.6\" y=\"-57.3\" font-family=\"Times New Roman,serif\" font-size=\"14.00\">Job1</text>\n",
"</g>\n",
"<!-- ChainedJobs/Job2 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>ChainedJobs/Job2</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"137.79\" cy=\"-34\" rx=\"28.7\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"137.79\" y=\"-30.3\" font-family=\"Times New Roman,serif\" font-size=\"14.00\">Job2</text>\n",
"</g>\n",
"<!-- ChainedJobs/Job1&#45;&gt;ChainedJobs/Job2 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>ChainedJobs/Job1&#45;&gt;ChainedJobs/Job2</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M71,-53.48C80.21,-50.75 90.8,-47.62 100.75,-44.67\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"101.61,-47.77 110.21,-41.57 99.63,-41.06 101.61,-47.77\"/>\n",
"</g>\n",
"<!-- ChainedJobs/Job3 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>ChainedJobs/Job3</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"137.79\" cy=\"-88\" rx=\"28.7\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"137.79\" y=\"-84.3\" font-family=\"Times New Roman,serif\" font-size=\"14.00\">Job3</text>\n",
"</g>\n",
"<!-- ChainedJobs/Job1&#45;&gt;ChainedJobs/Job3 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>ChainedJobs/Job1&#45;&gt;ChainedJobs/Job3</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M71,-68.52C80.21,-71.25 90.8,-74.38 100.75,-77.33\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"99.63,-80.94 110.21,-80.43 101.61,-74.23 99.63,-80.94\"/>\n",
"</g>\n",
"<!-- ChainedJobs/Job4 -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>ChainedJobs/Job4</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"230.99\" cy=\"-61\" rx=\"28.7\" ry=\"18\"/>\n",
"<text text-anchor=\"middle\" x=\"230.99\" y=\"-57.3\" font-family=\"Times New Roman,serif\" font-size=\"14.00\">Job4</text>\n",
"</g>\n",
"<!-- ChainedJobs/Job2&#45;&gt;ChainedJobs/Job4 -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>ChainedJobs/Job2&#45;&gt;ChainedJobs/Job4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M164.2,-41.52C173.41,-44.25 184,-47.38 193.95,-50.33\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"192.82,-53.94 203.4,-53.43 194.81,-47.23 192.82,-53.94\"/>\n",
"</g>\n",
"<!-- ChainedJobs/Job3&#45;&gt;ChainedJobs/Job4 -->\n",
"<g id=\"edge4\" class=\"edge\">\n",
"<title>ChainedJobs/Job3&#45;&gt;ChainedJobs/Job4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M164.2,-80.48C173.41,-77.75 184,-74.62 193.95,-71.67\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"194.81,-74.77 203.4,-68.57 192.82,-68.06 194.81,-74.77\"/>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x28d6ecb5220>"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\n",
"def chain_jobs(jobs, inpath='ChainedJobs'):\n",
" workflow.chain(jobs, inpath=inpath)\n",
" \n",
"chains = [\n",
" [JobCommand('Job1', command='echo Hello1'), JobCommand('Job2', command='echo Hello2')],\n",
" [JobCommand('Job1', command='echo Hello1'), JobCommand('Job3', command='echo Hello3')],\n",
" [JobCommand('Job2', command='echo Hello2'), JobCommand('Job4', command='echo Hello4')],\n",
" [JobCommand('Job3', command='echo Hello3'), JobCommand('Job4', command='echo Hello4')]\n",
"] \n",
"\n",
"for job_chain in chains:\n",
" chain_jobs(job_chain)\n",
"\n",
"get_graph(workflow)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Here's an example for the same scenario using separate triggers:"
]
},
{
"cell_type": "code",
"execution_count": 14,
Expand Down Expand Up @@ -683,7 +574,7 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x28d6ecb5250>"
"<graphviz.graphs.Digraph at 0x2ef3e805220>"
]
},
"execution_count": 14,
Expand All @@ -692,7 +583,7 @@
}
],
"source": [
" \n",
"workflow.clear_all()\n",
"\n",
"workflow.chain(\n",
" [\n",
Expand Down
Loading