Run One Node¶
You can run a single node in a graph. Use this to test iteratively while building a recipe.
Considerations¶
- The entire variation will get compiled and checked for errors, even though only one node will execute.
- Any upstream dependencies, such as changes to a database's state or setting variables during execution, will be missing. This may cause errors or test failures during the single node order.
- The single node order will count as part of the variation's metrics and test history, and this may skew those statistics.
- You cannot set maximum RAM and disk space allocations when running a single node, as you can for running a variation. The order run uses the default 1024 MB RAM and 2048 MB disk maximums.
Run a single node¶
- From a recipe variation graph, select a node.
- Click Edit Node.
- Click Run Node.
-
Follow the steps in the Run Node wizard.
-
Step 1: Details.
Review the details. Click Next to proceed or Skip Optionals and Run.
-
Optional. Step 2: Variables.
Set runtime overrides as needed. Click Next.
-
Step 3: Summary
Review the details. Click Previous to make changes.
Click Run Node to run this node with this configuration.
-
The run results for a single node are also listed on the Orders page and have their own Order Run Details page.
Run a few nodes¶
You can also run some, but not all, of a variation.
To run just a few nodes, navigate to a recipe variation graph. Press and hold Shift, then select the nodes you want to run. Click Run Nodes (located under the tabs, in the action menu) and follow the steps in the wizard.
Run a node from the command line¶
Run one node in the command line using the order-run command with the --node option.
~ $ dk order-run --kitchen staging_test --recipe test_recipe --node action_node_s3_source --yes
Current context is: default
YYYY-MM-DD HH:MM:SS - Create an Order:
Kitchen: staging_test
Recipe: test_recipe
Variation: test_schedule
Node: action_node_s3_source
Order ID is: c9dc1bd2-4ef6-11e8-a766-080027aceabc