pipeline_with_script.pipeline 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. {
  2. "doc_type": "pipeline",
  3. "version": "3.0",
  4. "json_schema": "http://api.dataplatform.ibm.com/schemas/common-pipeline/pipeline-flow/pipeline-flow-v3-schema.json",
  5. "id": "66338755-bce9-4541-b595-b0210c943b38",
  6. "primary_pipeline": "27fd7b90-42de-469a-9bcc-08ba82f48d48",
  7. "pipelines": [
  8. {
  9. "id": "27fd7b90-42de-469a-9bcc-08ba82f48d48",
  10. "nodes": [
  11. {
  12. "id": "cded6818-e601-4fd8-b6b9-c9fdf1fd1fca",
  13. "type": "execution_node",
  14. "op": "execute-notebook-node",
  15. "app_data": {
  16. "label": "a",
  17. "component_source": "test123",
  18. "component_parameters": {
  19. "filename": "scripts/dummy_script_1.py",
  20. "runtime_image": "tensorflow/tensorflow:2.0.0-py3",
  21. "env_vars": [
  22. "OP_NAME=a"
  23. ],
  24. "include_subdirectories": false,
  25. "mounted_volumes": [
  26. "/mount/test=rwx-test-claim"
  27. ],
  28. "dependencies": [
  29. "d.txt",
  30. "e.txt",
  31. "f.txt"
  32. ],
  33. "outputs": [
  34. "d.txt",
  35. "e.txt",
  36. "f.txt"
  37. ]
  38. },
  39. "ui_data": {
  40. "label": "a",
  41. "image": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20viewBox%3D%220%200%2022%2022%22%3E%0A%20%20%3Cg%20class%3D%22jp-icon-warn0%20jp-icon-selectable%22%20fill%3D%22%23EF6C00%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M18.7%203.3v15.4H3.3V3.3h15.4m1.5-1.5H1.8v18.3h18.3l.1-18.3z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M16.5%2016.5l-5.4-4.3-5.6%204.3v-11h11z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
  42. "x_pos": 72,
  43. "y_pos": 272,
  44. "description": "Run notebook file"
  45. }
  46. },
  47. "inputs": [
  48. {
  49. "id": "inPort",
  50. "app_data": {
  51. "ui_data": {
  52. "cardinality": {
  53. "min": 0,
  54. "max": -1
  55. },
  56. "label": "Input Port"
  57. }
  58. }
  59. }
  60. ],
  61. "outputs": [
  62. {
  63. "id": "outPort",
  64. "app_data": {
  65. "ui_data": {
  66. "cardinality": {
  67. "min": 0,
  68. "max": -1
  69. },
  70. "label": "Output Port"
  71. }
  72. }
  73. }
  74. ]
  75. },
  76. {
  77. "id": "6f5c2ece-1977-48a1-847f-099b327c6ed1",
  78. "type": "execution_node",
  79. "op": "execute-notebook-node",
  80. "app_data": {
  81. "label": "c",
  82. "component_parameters": {
  83. "filename": "scripts/dummy_script_2.py",
  84. "mounted_volumes": [
  85. "/mount/test=rwx-test-claim-1"
  86. ],
  87. "env_vars": [
  88. "OP_NAME=c"
  89. ],
  90. "include_subdirectories": false
  91. },
  92. "ui_data": {
  93. "label": "c",
  94. "image": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20viewBox%3D%220%200%2022%2022%22%3E%0A%20%20%3Cg%20class%3D%22jp-icon-warn0%20jp-icon-selectable%22%20fill%3D%22%23EF6C00%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M18.7%203.3v15.4H3.3V3.3h15.4m1.5-1.5H1.8v18.3h18.3l.1-18.3z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M16.5%2016.5l-5.4-4.3-5.6%204.3v-11h11z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A",
  95. "x_pos": 337,
  96. "y_pos": 251,
  97. "description": "Run notebook file",
  98. "decorations": [
  99. {
  100. "id": "error",
  101. "image": "data:image/svg+xml;utf8,%3Csvg%20focusable%3D%22false%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23da1e28%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20aria-hidden%3D%22true%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%20fill%3D%22%23ffffff%22%3E%3C%2Fcircle%3E%3Cpath%20d%3D%22M8%2C1C4.2%2C1%2C1%2C4.2%2C1%2C8s3.2%2C7%2C7%2C7s7-3.1%2C7-7S11.9%2C1%2C8%2C1z%20M7.5%2C4h1v5h-1C7.5%2C9%2C7.5%2C4%2C7.5%2C4z%20M8%2C12.2%09c-0.4%2C0-0.8-0.4-0.8-0.8s0.3-0.8%2C0.8-0.8c0.4%2C0%2C0.8%2C0.4%2C0.8%2C0.8S8.4%2C12.2%2C8%2C12.2z%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M7.5%2C4h1v5h-1C7.5%2C9%2C7.5%2C4%2C7.5%2C4z%20M8%2C12.2c-0.4%2C0-0.8-0.4-0.8-0.8s0.3-0.8%2C0.8-0.8%09c0.4%2C0%2C0.8%2C0.4%2C0.8%2C0.8S8.4%2C12.2%2C8%2C12.2z%22%20data-icon-path%3D%22inner-path%22%20opacity%3D%220%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
  102. "outline": false,
  103. "position": "topRight",
  104. "x_pos": -24,
  105. "y_pos": -8
  106. }
  107. ]
  108. }
  109. },
  110. "inputs": [
  111. {
  112. "id": "inPort",
  113. "app_data": {
  114. "ui_data": {
  115. "cardinality": {
  116. "min": 0,
  117. "max": -1
  118. },
  119. "label": "Input Port"
  120. }
  121. },
  122. "links": [
  123. {
  124. "id": "3fa9ed07-4cf0-4928-9832-1a9e530c1f23",
  125. "node_id_ref": "cded6818-e601-4fd8-b6b9-c9fdf1fd1fca",
  126. "port_id_ref": "outPort"
  127. }
  128. ]
  129. }
  130. ],
  131. "outputs": [
  132. {
  133. "id": "outPort",
  134. "app_data": {
  135. "ui_data": {
  136. "cardinality": {
  137. "min": 0,
  138. "max": -1
  139. },
  140. "label": "Output Port"
  141. }
  142. }
  143. }
  144. ]
  145. }
  146. ],
  147. "app_data": {
  148. "ui_data": {
  149. "runtime": null,
  150. "comments": []
  151. },
  152. "version": 7,
  153. "properties": {
  154. "name": "generic_pipeline_with_script_only",
  155. "runtime": "Generic"
  156. }
  157. },
  158. "runtime_ref": ""
  159. }
  160. ],
  161. "schemas": []
  162. }