|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 10, |
| 6 | + "id": "000bbd4a-f53c-4eea-9d85-76f0aa2ca10b", |
| 7 | + "metadata": { |
| 8 | + "trusted": true |
| 9 | + }, |
| 10 | + "outputs": [], |
| 11 | + "source": [ |
| 12 | + "from jobflow import job, Flow" |
| 13 | + ] |
| 14 | + }, |
| 15 | + { |
| 16 | + "cell_type": "code", |
| 17 | + "execution_count": 11, |
| 18 | + "id": "b4a78447-e87c-4fb4-8d17-d9a280eb7254", |
| 19 | + "metadata": { |
| 20 | + "trusted": true |
| 21 | + }, |
| 22 | + "outputs": [], |
| 23 | + "source": [ |
| 24 | + "from pyiron_base import Project" |
| 25 | + ] |
| 26 | + }, |
| 27 | + { |
| 28 | + "cell_type": "code", |
| 29 | + "execution_count": 12, |
| 30 | + "id": "06c2bd9e-b2ac-4b88-9158-fa37331c3418", |
| 31 | + "metadata": { |
| 32 | + "trusted": true |
| 33 | + }, |
| 34 | + "outputs": [], |
| 35 | + "source": [ |
| 36 | + "from python_workflow_definition.jobflow import write_workflow_json" |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "cell_type": "code", |
| 41 | + "execution_count": 13, |
| 42 | + "id": "fb6dbdaa-8cab-48b2-8307-448003eca3f5", |
| 43 | + "metadata": { |
| 44 | + "trusted": true |
| 45 | + }, |
| 46 | + "outputs": [], |
| 47 | + "source": [ |
| 48 | + "from python_workflow_definition.aiida import load_workflow_json" |
| 49 | + ] |
| 50 | + }, |
| 51 | + { |
| 52 | + "cell_type": "code", |
| 53 | + "execution_count": 14, |
| 54 | + "id": "fb847d49-7bf9-4839-9b99-c116d1b0e9ee", |
| 55 | + "metadata": { |
| 56 | + "trusted": true |
| 57 | + }, |
| 58 | + "outputs": [], |
| 59 | + "source": [ |
| 60 | + "from simple_workflow import (\n", |
| 61 | + " add_x_and_y as _add_x_and_y, \n", |
| 62 | + " add_x_and_y_and_z as _add_x_and_y_and_z,\n", |
| 63 | + ")" |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "cell_type": "code", |
| 68 | + "execution_count": 15, |
| 69 | + "id": "8f95244e", |
| 70 | + "metadata": {}, |
| 71 | + "outputs": [], |
| 72 | + "source": [ |
| 73 | + "workflow_json_filename = \"workflow_simple_jobflow.json\"" |
| 74 | + ] |
| 75 | + }, |
| 76 | + { |
| 77 | + "cell_type": "code", |
| 78 | + "execution_count": 16, |
| 79 | + "id": "07598344-0f75-433b-8902-bea21a42088c", |
| 80 | + "metadata": { |
| 81 | + "trusted": true |
| 82 | + }, |
| 83 | + "outputs": [], |
| 84 | + "source": [ |
| 85 | + "add_x_and_y = job(_add_x_and_y, data=[\"x\", \"y\", \"z\"])\n", |
| 86 | + "add_x_and_y_and_z = job(_add_x_and_y_and_z)" |
| 87 | + ] |
| 88 | + }, |
| 89 | + { |
| 90 | + "cell_type": "code", |
| 91 | + "execution_count": 17, |
| 92 | + "id": "ecef1ed5-a8d3-48c3-9e01-4a40e55c1153", |
| 93 | + "metadata": { |
| 94 | + "trusted": true |
| 95 | + }, |
| 96 | + "outputs": [], |
| 97 | + "source": [ |
| 98 | + "obj = add_x_and_y(x=1, y=2)" |
| 99 | + ] |
| 100 | + }, |
| 101 | + { |
| 102 | + "cell_type": "code", |
| 103 | + "execution_count": 18, |
| 104 | + "id": "2b88a30a-e26b-4802-89b7-79ca08cc0af9", |
| 105 | + "metadata": { |
| 106 | + "trusted": true |
| 107 | + }, |
| 108 | + "outputs": [], |
| 109 | + "source": [ |
| 110 | + "w = add_x_and_y_and_z(x=obj.output.x, y=obj.output.y, z=obj.output.z)" |
| 111 | + ] |
| 112 | + }, |
| 113 | + { |
| 114 | + "cell_type": "code", |
| 115 | + "execution_count": 19, |
| 116 | + "id": "a5e5ca63-2906-47c9-bac6-adebf8643cba", |
| 117 | + "metadata": { |
| 118 | + "trusted": true |
| 119 | + }, |
| 120 | + "outputs": [], |
| 121 | + "source": [ |
| 122 | + "flow = Flow([obj, w])" |
| 123 | + ] |
| 124 | + }, |
| 125 | + { |
| 126 | + "cell_type": "code", |
| 127 | + "execution_count": 20, |
| 128 | + "id": "e464da97-16a1-4772-9a07-0a47f152781d", |
| 129 | + "metadata": { |
| 130 | + "trusted": true |
| 131 | + }, |
| 132 | + "outputs": [], |
| 133 | + "source": [ |
| 134 | + "write_workflow_json(flow=flow, file_name=workflow_json_filename)" |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "cell_type": "code", |
| 139 | + "execution_count": 21, |
| 140 | + "id": "bca646b2-0a9a-4271-966a-e5903a8c9031", |
| 141 | + "metadata": { |
| 142 | + "trusted": true |
| 143 | + }, |
| 144 | + "outputs": [ |
| 145 | + { |
| 146 | + "name": "stdout", |
| 147 | + "output_type": "stream", |
| 148 | + "text": [ |
| 149 | + "\u001b[38;5;238m───────┬────────────────────────────────────────────────────────────────────────\u001b[0m\n", |
| 150 | + " \u001b[38;5;238m│ \u001b[0mFile: \u001b[1mworkflow_simple_jobflow.json\u001b[0m\n", |
| 151 | + "\u001b[38;5;238m───────┼────────────────────────────────────────────────────────────────────────\u001b[0m\n", |
| 152 | + "\u001b[38;5;238m 1\u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mnodes\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208m0\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186msimple_workflow.add_x_and_y\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208m1\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186msimple_workflow.ad\u001b[0m\n", |
| 153 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;186md_x_and_y_and_z\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208m2\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m1\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208m3\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m2\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208medges\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m[\u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtarget\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m0\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtargetHandl\u001b[0m\n", |
| 154 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;208me\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186mx\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msource\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m2\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msourceHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141mnull\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtarget\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m0\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtargetHandl\u001b[0m\n", |
| 155 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;208me\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186my\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msource\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m3\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msourceHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141mnull\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtarget\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m1\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtargetHandl\u001b[0m\n", |
| 156 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;208me\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186mx\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msource\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m0\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msourceHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186mx\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtarget\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m1\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtargetHandle\u001b[0m\n", |
| 157 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186my\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msource\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m0\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msourceHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186my\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;231m{\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtarget\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m1\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208mtargetHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\n", |
| 158 | + "\u001b[38;5;238m \u001b[0m \u001b[38;5;238m│\u001b[0m \u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186mz\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msource\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;141m0\u001b[0m\u001b[38;5;231m,\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;208msourceHandle\u001b[0m\u001b[38;5;208m\"\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;186mz\u001b[0m\u001b[38;5;186m\"\u001b[0m\u001b[38;5;231m}\u001b[0m\u001b[38;5;231m]\u001b[0m\u001b[38;5;231m}\u001b[0m\n", |
| 159 | + "\u001b[38;5;238m───────┴────────────────────────────────────────────────────────────────────────\u001b[0m\n" |
| 160 | + ] |
| 161 | + } |
| 162 | + ], |
| 163 | + "source": [ |
| 164 | + "!cat {workflow_json_filename}" |
| 165 | + ] |
| 166 | + }, |
| 167 | + { |
| 168 | + "cell_type": "code", |
| 169 | + "execution_count": 23, |
| 170 | + "id": "8f2a621d-b533-4ddd-8bcd-c22db2f922ec", |
| 171 | + "metadata": { |
| 172 | + "trusted": true |
| 173 | + }, |
| 174 | + "outputs": [ |
| 175 | + { |
| 176 | + "data": { |
| 177 | + "application/vnd.jupyter.widget-view+json": { |
| 178 | + "model_id": "6d262da7512d4dd5b25be162da9f2e41", |
| 179 | + "version_major": 2, |
| 180 | + "version_minor": 1 |
| 181 | + }, |
| 182 | + "text/plain": [ |
| 183 | + "NodeGraphWidget(settings={'minimap': True}, style={'width': '90%', 'height': '600px'}, value={'name': 'WorkGra…" |
| 184 | + ] |
| 185 | + }, |
| 186 | + "execution_count": 23, |
| 187 | + "metadata": {}, |
| 188 | + "output_type": "execute_result" |
| 189 | + } |
| 190 | + ], |
| 191 | + "source": [ |
| 192 | + "wg = load_workflow_json(filename=workflow_json_filename)\n", |
| 193 | + "wg" |
| 194 | + ] |
| 195 | + }, |
| 196 | + { |
| 197 | + "cell_type": "code", |
| 198 | + "execution_count": 25, |
| 199 | + "id": "cf80267d-c2b0-4236-bf1d-a57596985fc1", |
| 200 | + "metadata": { |
| 201 | + "trusted": true |
| 202 | + }, |
| 203 | + "outputs": [ |
| 204 | + { |
| 205 | + "name": "stderr", |
| 206 | + "output_type": "stream", |
| 207 | + "text": [ |
| 208 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n", |
| 209 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: 2,3\n", |
| 210 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: 2, type: Normal\n", |
| 211 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_normal_task_state]: Task: 2 finished.\n", |
| 212 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n", |
| 213 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: 3\n", |
| 214 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: 3, type: Normal\n", |
| 215 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_normal_task_state]: Task: 3 finished.\n", |
| 216 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n" |
| 217 | + ] |
| 218 | + }, |
| 219 | + { |
| 220 | + "name": "stdout", |
| 221 | + "output_type": "stream", |
| 222 | + "text": [ |
| 223 | + "------------------------------------------------------------\n", |
| 224 | + "kwargs: {'value': 1}\n", |
| 225 | + "------------------------------------------------------------\n", |
| 226 | + "kwargs: {'value': 2}\n" |
| 227 | + ] |
| 228 | + }, |
| 229 | + { |
| 230 | + "name": "stderr", |
| 231 | + "output_type": "stream", |
| 232 | + "text": [ |
| 233 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y\n", |
| 234 | + "03/17/2025 10:49:39 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: add_x_and_y, type: PYTHONJOB\n" |
| 235 | + ] |
| 236 | + }, |
| 237 | + { |
| 238 | + "name": "stdout", |
| 239 | + "output_type": "stream", |
| 240 | + "text": [ |
| 241 | + "------------------------------------------------------------\n", |
| 242 | + "kwargs: {'register_pickle_by_value': True, 'x': 1, 'y': 2}\n" |
| 243 | + ] |
| 244 | + }, |
| 245 | + { |
| 246 | + "name": "stderr", |
| 247 | + "output_type": "stream", |
| 248 | + "text": [ |
| 249 | + "03/17/2025 10:49:40 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 8560\n", |
| 250 | + "03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_task_state]: Task: add_x_and_y finished.\n", |
| 251 | + "03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n", |
| 252 | + "03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: add_x_and_y_and_z\n", |
| 253 | + "03/17/2025 10:49:42 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|run_tasks]: Run task: add_x_and_y_and_z, type: PYTHONJOB\n" |
| 254 | + ] |
| 255 | + }, |
| 256 | + { |
| 257 | + "name": "stdout", |
| 258 | + "output_type": "stream", |
| 259 | + "text": [ |
| 260 | + "------------------------------------------------------------\n", |
| 261 | + "kwargs: {'register_pickle_by_value': True, 'x': <Int: uuid: 641fb31a-ade5-4268-8792-60467c4fb196 (pk: 8564) value: 1>, 'y': <Int: uuid: f9fb98d9-4800-445e-a386-73b3bd64d49f (pk: 8565) value: 2>, 'z': <Int: uuid: 11c56b8d-25d3-4c30-9afa-1f0bbfca15a3 (pk: 8566) value: 3>}\n" |
| 262 | + ] |
| 263 | + }, |
| 264 | + { |
| 265 | + "name": "stderr", |
| 266 | + "output_type": "stream", |
| 267 | + "text": [ |
| 268 | + "03/17/2025 10:49:43 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|on_wait]: Process status: Waiting for child processes: 8573\n", |
| 269 | + "03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|update_task_state]: Task: add_x_and_y_and_z finished.\n", |
| 270 | + "03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: Continue workgraph.\n", |
| 271 | + "03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|continue_workgraph]: tasks ready to run: \n", |
| 272 | + "03/17/2025 10:49:45 AM <4010610> aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT] [8551|WorkGraphEngine|finalize]: Finalize workgraph.\n" |
| 273 | + ] |
| 274 | + }, |
| 275 | + { |
| 276 | + "name": "stdout", |
| 277 | + "output_type": "stream", |
| 278 | + "text": [ |
| 279 | + "group_outputs []\n", |
| 280 | + "group_outputs: {}\n" |
| 281 | + ] |
| 282 | + }, |
| 283 | + { |
| 284 | + "data": { |
| 285 | + "text/plain": [ |
| 286 | + "{'execution_count': <Int: uuid: 30d6c319-3250-43a3-a4dd-72de32fa41a6 (pk: 8578) value: 1>}" |
| 287 | + ] |
| 288 | + }, |
| 289 | + "execution_count": 25, |
| 290 | + "metadata": {}, |
| 291 | + "output_type": "execute_result" |
| 292 | + } |
| 293 | + ], |
| 294 | + "source": [ |
| 295 | + "from aiida import load_profile\n", |
| 296 | + "\n", |
| 297 | + "load_profile()\n", |
| 298 | + "\n", |
| 299 | + "wg.run()" |
| 300 | + ] |
| 301 | + } |
| 302 | + ], |
| 303 | + "metadata": { |
| 304 | + "kernelspec": { |
| 305 | + "display_name": "ADIS", |
| 306 | + "language": "python", |
| 307 | + "name": "python3" |
| 308 | + }, |
| 309 | + "language_info": { |
| 310 | + "codemirror_mode": { |
| 311 | + "name": "ipython", |
| 312 | + "version": 3 |
| 313 | + }, |
| 314 | + "file_extension": ".py", |
| 315 | + "mimetype": "text/x-python", |
| 316 | + "name": "python", |
| 317 | + "nbconvert_exporter": "python", |
| 318 | + "pygments_lexer": "ipython3", |
| 319 | + "version": "3.10.12" |
| 320 | + } |
| 321 | + }, |
| 322 | + "nbformat": 4, |
| 323 | + "nbformat_minor": 5 |
| 324 | +} |
0 commit comments