Fetch logs from tasks in a bundle.
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.
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.34 running at '/tmp/RtmpUN1Cun/file194c7b563e34' ───────────────"
#> [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: 5943e0474fa3e699dd8db1904c5e153d"
#> [8] "ℹ starting at: 2024-08-16 20:20:26.60697"
#> [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-08-16 20:20:26.60697 (elapsed: 0.212 secs)"
#>
#> [[2]]
#> [1] ""
#> [2] "── hipercow 1.0.34 running at '/tmp/RtmpUN1Cun/file194c7b563e34' ───────────────"
#> [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: 1825cdf402de18c2a2557d97f57f1414"
#> [8] "ℹ starting at: 2024-08-16 20:20:27.025539"
#> [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