Skip to content

Commit

Permalink
compatibility with crew.aws.batch
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 27, 2025
1 parent 7928b13 commit a629373
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/crew_launcher.R
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ crew_class_launcher <- R6::R6Class(
)
}
fields <- c(
"workers",
"seconds_interval",
"seconds_timeout",
"seconds_launch",
Expand All @@ -433,6 +432,10 @@ crew_class_launcher <- R6::R6Class(
"tasks_max",
"tasks_timers"
)
# TODO: require non-null workers field when plugins catch up
if (!is.null(self[["workers"]])) {
fields <- c(fields, "workers")
}
for (field in fields) {
crew_assert(
self[[field]],
Expand Down

0 comments on commit a629373

Please sign in to comment.