Skip to content

Commit e5c79bd

Browse files
committed
idle time in example
1 parent b7078d0 commit e5c79bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inst/pipelines/use_targets.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ tar_option_set(
1717
# in tar_make(), supply a {crew} controller
1818
# as discussed at https://books.ropensci.org/targets/crew.html.
1919
# Choose a controller that suits your needs. For example, the following
20-
# sets a controller with 2 workers which will run as local R processes:
20+
# sets a controller that scales up to a maximum of two workers
21+
# which run as local R processes. Each worker launches when there is work
22+
# to do and exits if 60 seconds pass with no tasks to run.
2123
#
22-
# controller = crew::crew_controller_local(workers = 2)
24+
# controller = crew::crew_controller_local(workers = 2, seconds_idle = 60)
2325
#
2426
# Alternatively, if you want workers to run on a high-performance computing
2527
# cluster, select a controller from the {crew.cluster} package.
@@ -34,7 +36,7 @@ tar_option_set(
3436
# seconds_idle = 120,
3537
# # Many clusters install R as an environment module, and you can load it
3638
# # with the script_lines argument. To select a specific verison of R,
37-
# # you may need to include a version string, e.g. "module load R/4.3.0".
39+
# # you may need to include a version string, e.g. "module load R/4.3.2".
3840
# # Check with your system administrator if you are unsure.
3941
# script_lines = "module load R"
4042
# )

0 commit comments

Comments
 (0)