Skip to content

Commit

Permalink
fix task conf update
Browse files Browse the repository at this point in the history
  • Loading branch information
Miachol committed May 13, 2022
1 parent 647fae2 commit 45114b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/task.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ NULL
#' @param conf Web UI conf.
#' @export
update_task_status <- function(conf) {
conf <- globs_get("conf")
outfn <- paste0(dirname(opt$outputFilePrefix), "/task.status.json")
if (!file.exists(paste0(dirname(opt$outputFilePrefix), "/task.retry"))) {
outfn <- paste0(dirname(dirname(opt$outputFilePrefix)), "/task.status.json")
Expand All @@ -22,6 +21,7 @@ update_task_status <- function(conf) {
#' @param func a function to run
#' @export
new_task_step <- function(id, label, func) {
conf <- globs_get("conf")
log <- sprintf("%s/log/%s.log", dirname(opt$outputFilePrefix), id)
print(log)
con <- file(log)
Expand Down

0 comments on commit 45114b8

Please sign in to comment.