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.36 running at '/tmp/Rtmpw3JKrD/file16dc6142cfe3' ───────────────"
#>  [3] "ℹ library paths:"                                                                
#>  [4] "• /home/runner/work/_temp/Library"                                               
#>  [5] "• /opt/R/4.4.1/lib/R/site-library"                                               
#>  [6] "• /opt/R/4.4.1/lib/R/library"                                                    
#>  [7] "ℹ id: 331bdec8a1149c4e168b36b4f2d983a7"                                          
#>  [8] "ℹ starting at: 2024-10-08 15:24:40.06121"                                        
#>  [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-10-08 15:24:40.06121 (elapsed: 0.2124 secs)"                
#> 
#> [[2]]
#>  [1] ""                                                                                
#>  [2] "── hipercow 1.0.36 running at '/tmp/Rtmpw3JKrD/file16dc6142cfe3' ───────────────"
#>  [3] "ℹ library paths:"                                                                
#>  [4] "• /home/runner/work/_temp/Library"                                               
#>  [5] "• /opt/R/4.4.1/lib/R/site-library"                                               
#>  [6] "• /opt/R/4.4.1/lib/R/library"                                                    
#>  [7] "ℹ id: 42817348eb190217a496676371c8f927"                                          
#>  [8] "ℹ starting at: 2024-10-08 15:24:40.482824"                                       
#>  [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"                                                               
#> 

cleanup()
#>  Cleaning up example