orderrun-info¶
Shortcut: ori
Help option
~ $ dk orderrun-info --help
Current context is: default
Current context is: default
Usage: dk orderrun-info [OPTIONS]
Display information about an OrderRun in a Kitchen.
Options:
-k, --kitchen TEXT kitchen name
-o, --order_id TEXT Order ID
-ori, --order_run_id TEXT OrderRun ID to display
-s, --summary display run summary information
-ns, --nodestatus display node status info
-fl, --full_log display full logs
-l, --log display log info
-lt, --log_threshold TEXT Log display threshold. Can be ERROR, INFO, DEBUG, TRACE. Default value is INFO. This does not affect full_log
-t, --timing display timing results
-q, --test display test results
--runstatus display status of the run (single line)
--disp_order_id display the order id (single line)
--disp_orderrun_id display the order run id (single line)
-at, --all_things display all information
--help Show this message and exit.
Display order run summary using contextual options
~/Kitchens/Dev_Sprint/Recipe1 $ dk orderrun-info --order_run_id 3ae83e0a-f7cc-11e7-9d16-12d21ed7aa80
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from Kitchen Dev_Sprint:
ORDER RUN SUMMARY
Order ID: 271848fa-3d97-11e8-b513-0242ac110002
Order Run ID: 3ae83e0a-f7cc-11e7-9d16-12d21ed7aa80
Status: COMPLETED_SERVING
Kitchen: Dev_Sprint
Recipe: Recipe1
Variation: Variation1
Start time: YYYY-MM-DD HH:MM:SS
Run duration: (H:M:S)
Display timings for most recent order run using explicit options and shortcuts
~ $ dk ori -k Dev_Sprint -r Recipe1 -t
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from Kitchen Dev_Sprint:
TIMING RESULTS
DKRecipe timing (Recipe1), status = DKNodeStatus_in_production
total recipe execution time|None
Node (node1), status = DKNodeStatus_completed_production, timing is||0:00:01.032
(node1) Notebook elapsed time is|0:00:00.005
Node (node2), status = DKNodeStatus_ready_for_production, timing is||None
(node2) Data Source(DKDataSource_Container) timing is||None
(node2) Notebook elapsed time is|None
Node (node3), status = DKNodeStatus_ready_for_production, timing is||None
(node3) Data Source(load-segment) timing is||None
(node3) Notebook elapsed time is|None
Node (node4), status = DKNodeStatus_ready_for_production, timing is||None
(node4) Data Source(DKDataSource_Container) timing is||None
(node4) Notebook elapsed time is|None
Node (node5), status = DKNodeStatus_in_production, timing is||None
(node5) Notebook elapsed time is|None
Display order run test results
~ $ dk ori -k Dev_Sprint -r Recipe1 -q
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from Kitchen Dev_Sprint:
TEST RESULTS
Tests: Failed
No Tests Failed
Tests: Warning
No Tests Gave Warning Messages
Tests: Log
No Tests Gave Log Messages
Tests: Passed
Step (node1)
1. test_load_data (1589 greater-than-equal-to 1589)
Step (node2)
1. get-test-data-count (51289 greater-than 10000)
Step (node3)
1. get-test-data-count (10993497 greater-than 10993495
Display order run status
Display order run node status
~ $ dk ori -k Dev_Sprint -r Recipe1 -ns
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from Kitchen Dev_Sprint:
STEP STATUS
node1 DKNodeStatus_completed_production
node2 DKNodeStatus_completed_production
node3 DKNodeStatus_completed_production
node4 DKNodeStatus_completed_production
node5 DKNodeStatus_completed_production
Display summary for specified order run id using explicit options and shortcuts
~/Kitchens $ dk ori -k Dev_Sprint_1 -ori 3ae83e0a-f7cc-11e7-9d16-12d21ed7aa80
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from kitchen Dev_Sprint_1
ORDER RUN SUMMARY
Order ID: 271848fa-3d97-11e8-b513-0242ac110002
Order Run ID: 3ae83e0a-f7cc-11e7-9d16-12d21ed7aa80
Status: COMPLETED_SERVING
Kitchen: Dev_Sprint_1
Recipe: Recipe1
Variation: Variation1
Start time: YYYY-MM-DD HH:MM:SS
Run duration: (H:M:S)
Display order run logs
~ $ dk orderun-info --kitchen eric_dev -order_run_id 802213bc-3662-11e9-9f7b-0ad19868a29a --log
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from kitchen eric_dev
LOG
Log Format: datetime | record_type | thread_name | message
YYYY-MM-DD HH:MM:SS | INFO | MainThread | DKCommandServer: starting
....
Display order run test results
~ $ dk orderun-info --kitchen eric_dev -order_run_id 802213bc-3662-11e9-9f7b-0ad19868a29a --test
Current context is: default
YYYY-MM-DD HH:MM:SS - Display Order-Run details from kitchen eric_dev
TEST RESULTS
Tests: Failed
No Tests Failed
Tests: Warning
No Tests Gave Warning Messages
Tests: Log
Step (node_with_downstream_test)
1. log_time_minute_var_value (7 7)
Step (redshift_source_test)
1. log_random_var_value (5 5)
Tests: Passed
Step (redshift_source_test)
1. warning_if_random_var_value_is_identical_to_previous_run (5 not-equal-to 4 (previous-value of historic_calc_var)=4)
2. warning_if_random_var_value_is_less_than_its_running_average (5 greater-than-equal-to 5 (running-average of historic_calc_avg_var)=5)
3. warning_if_random_var_value_is_greater_than_5 (5 5 <= 5)
4. warning_if_random_var_value_equals_3 (5 5 != 3)
5. stop_on_error_if_static_query_result_does_not_equal_5 (5 query_result == 5)
Step (node_with_downstream_test)
1. stop_on_error_if_downstream_test_of_count_files_pulled_does_not_equal_18 (18 count_files_pulled == 18)
Step (s3_source_test)
1. stop_on_error_if_count_files_pulled_does_not_equal_18 (18 count_files_pulled == 18)