Skip to contents

Fetch logs from tasks in a bundle.

Usage

hipercow_bundle_log_value(bundle, outer = FALSE, follow = TRUE, root = NULL)

Arguments

bundle

Either a hipercow_bundle object, or the name of a bundle.

outer

Logical, indicating if we should request the "outer" logs; these are logs from the underlying HPC software before it hands off to hipercow.

follow

Logical, indicating if we should follow any retried tasks.

root

A hipercow root, or path to it. If NULL we search up your directory tree.

Value

A list with each element being the logs for the corresponding element in the bundle.

Examples

cleanup <- hipercow_example_helper(with_logging = TRUE)
#>  This example uses a special helper
bundle <- task_create_bulk_expr(sqrt(x), data.frame(x = 1:2))
#>  Submitted 2 tasks using 'example'
#>  Created bundle 'indistinct_indianspinyloach' with 2 tasks
hipercow_bundle_wait(bundle)
#> [1] TRUE
hipercow_bundle_log_value(bundle)
#> [[1]]
#>  [1] ""                                                                                
#>  [2] "── hipercow 1.0.55 running at '/home/runner/work/_temp/hv-20250212-1dc1660a4110'"
#>  [3] "ℹ library paths:"                                                                
#>  [4] "• /home/runner/work/_temp/Library"                                               
#>  [5] "• /opt/R/4.4.2/lib/R/site-library"                                               
#>  [6] "• /opt/R/4.4.2/lib/R/library"                                                    
#>  [7] "ℹ id: a97516d4ac3133bdbdb1834fe07619e0"                                          
#>  [8] "ℹ starting at: 2025-02-12 17:17:31.673846"                                       
#>  [9] "ℹ Task type: expression"                                                         
#> [10] "• Expression: sqrt(x)"                                                           
#> [11] "• Locals: x"                                                                     
#> [12] "• Environment: default"                                                          
#> [13] "  R_GC_MEM_GROW: 3"                                                              
#> [14] "───────────────────────────────────────────────────────────────── task logs ↓ ──"
#> [15] ""                                                                                
#> [16] "───────────────────────────────────────────────────────────────── task logs ↑ ──"
#> [17] "✔ status: success"                                                               
#> [18] "ℹ finishing at: 2025-02-12 17:17:31.673846 (elapsed: 0.2316 secs)"               
#> 
#> [[2]]
#>  [1] ""                                                                                
#>  [2] "── hipercow 1.0.55 running at '/home/runner/work/_temp/hv-20250212-1dc1660a4110'"
#>  [3] "ℹ library paths:"                                                                
#>  [4] "• /home/runner/work/_temp/Library"                                               
#>  [5] "• /opt/R/4.4.2/lib/R/site-library"                                               
#>  [6] "• /opt/R/4.4.2/lib/R/library"                                                    
#>  [7] "ℹ id: adb0c0a541363c2035d15b67adbb1d2f"                                          
#>  [8] "ℹ starting at: 2025-02-12 17:17:32.114915"                                       
#>  [9] "ℹ Task type: expression"                                                         
#> [10] "• Expression: sqrt(x)"                                                           
#> [11] "• Locals: x"                                                                     
#> [12] "• Environment: default"                                                          
#> [13] "  R_GC_MEM_GROW: 3"                                                              
#> [14] "───────────────────────────────────────────────────────────────── task logs ↓ ──"
#> [15] ""                                                                                
#> [16] "───────────────────────────────────────────────────────────────── task logs ↑ ──"
#> [17] "✔ status: success"                                                               
#> [18] "ℹ finishing at: 2025-02-12 17:17:32.114915 (elapsed: 0.2185 secs)"               
#> 

cleanup()
#>  Cleaning up example