## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup-------------------------------------------------------------------- library(abba) ## ----submit_job, eval=FALSE--------------------------------------------------- # abba_submit_k8s_job_local( # "/home/user/programs/my_program.R", # container = "registry.example.com/my_image:latest" # ) # # job.batch/test-program-fbc3131d-a850-4081-8224-c06ef32821da created # # $job_id # # [1] "test-program-fbc3131d-a850-4081-8224-c06ef32821da" # # # # $batch_id # # [1] "test_program-62e382a9-c1a7-4527-a32d-46600ee9ff80" ## ----get_status, eval=FALSE--------------------------------------------------- # abba_get_k8s_job_status_local("test-program-fbc3131d-a850-4081-8224-c06ef32821da") # # $Succeeded # # $Succeeded$Jobs # # $Succeeded$Jobs[[1]] # # $Succeeded$Jobs[[1]]$id # # [1] "test-program-fbc3131d-a850-4081-8224-c06ef32821da-2dbr8" # # # # $Succeeded$Jobs[[1]]$path # # [1] "/home/mike.stackhouse/repos/abba/test_programs/test_program.R" # # # # # # # # $Succeeded$Description # # [1] "All containers in the Pod have terminated in success, and will not be restarted." ## ----watch_job, eval=FALSE---------------------------------------------------- # abba_get_k8s_job_log_local("test-program-fbc3131d-a850-4081-8224-c06ef32821da") # # [[1]] # # [[1]]$job_id # # [1] "test-program-fbc3131d-a850-4081-8224-c06ef32821da" # # # # [[1]]$log # # [1] "[1] 4" "Warning message:" "This is a test warning " "La-di-da"