Cancel all tasks in a bundle. This wraps task_cancel for all the ids.
Value
A logical vector the same length as id
indicating if the
task was cancelled. This will be FALSE
if the job was already
completed, not running, etc.
Examples
cleanup <- hipercow_example_helper(runner = FALSE)
#> ℹ This example uses a special helper
bundle <- task_create_bulk_expr(sqrt(x), data.frame(x = 1:5))
#> ✔ Submitted 5 tasks using 'example'
#> ✔ Created bundle 'nonspheric_siberiantiger' with 5 tasks
hipercow_bundle_cancel(bundle)
#> ✔ Successfully cancelled 5 tasks
#> [1] TRUE TRUE TRUE TRUE TRUE
hipercow_bundle_status(bundle)
#> [1] "cancelled" "cancelled" "cancelled" "cancelled" "cancelled"
cleanup()
#> ℹ Cleaning up example