Skip to content

Commit de7c800

Browse files
committed
WIP
1 parent 27b698b commit de7c800

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/runner.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
dependencies: NA
2020
- name: Execute tasks
2121
shell: bash
22-
run: Rscript --verbose 'run.R'
22+
run: Rscript --verbose 'source("run.R", echo=TRUE)'

run.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,11 @@ task_status <- function(task_id, include_logs = FALSE) {
5757
httr2::resp_body_json()
5858
}
5959

60-
task_logs <- function(task_id) {
61-
unlist(task_status(task_id, include_logs = TRUE)$logs)
62-
}
63-
6460
task_wait <- function(task_id) {
6561
while (TRUE) {
6662
status <- task_status(task_id)
6763
if (status$status != "RUNNING") {
68-
return(status)
64+
return (status)
6965
}
7066
Sys.sleep(1)
7167
}

0 commit comments

Comments
 (0)