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 'fat_songbird' with 2 tasks
hipercow_bundle_wait(bundle)
#> [1] TRUE
hipercow_bundle_log_value(bundle)
#> [[1]]
#>  [1] ""                                                                                
#>  [2] "── hipercow 1.0.52 running at '/home/runner/work/_temp/hv-20241209-1e85107b1876'"
#>  [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: 1e2ec637f3436a4345715d340e41a44a"                                          
#>  [8] "ℹ starting at: 2024-12-09 18:43:01.189355"                                       
#>  [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: 2024-12-09 18:43:01.189355 (elapsed: 0.2113 secs)"               
#> 
#> [[2]]
#>  [1] ""                                                                                
#>  [2] "── hipercow 1.0.52 running at '/home/runner/work/_temp/hv-20241209-1e85107b1876'"
#>  [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: cf01c93505a60db36f0ea239a6255e4e"                                          
#>  [8] "ℹ starting at: 2024-12-09 18:43:01.603863"                                       
#>  [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: 2024-12-09 18:43:01.603863 (elapsed: 0.2112 secs)"               
#> 

cleanup()
#>  Cleaning up example