@@ -250,8 +250,39 @@ def run_local(args: argparse.Namespace, rose_tree: RoseTree, cachedir: Optional[
250250 date_time = now .strftime ("%Y%m%d%H%M%S" )
251251 cmd += ['--outdir' , f'outdir_toil_{ yaml_stem } _{ date_time } ' ,
252252 '--jobStore' , f'file:./jobStore_{ yaml_stem } ' , # NOTE: This is the equivalent of --cachedir
253+ '--batchSystem' , args .toil_batchsystem ,
254+ # The default amount of memory to request for a job (in bytes), by default is 2^31 = 2 gigabytes
255+ # Not applied to the CWL jobs. The CWL CLTs should define RamMin in the ResourceRequirement section
256+ '--defaultMemory' , args .toil_defaultmemory ,
257+ '--defaultDisk' , args .toil_defaultDisk ,
258+ # Not giving users these choice is better?
259+ '--statePollingWait' , '0' , # See https://github.com/DataBiosphere/toil/pull/4471
260+ '--retryCount' , '0' , # There appear to be random errors due to the panassas network file system.
261+ # Number of times to retry a failing job before giving
262+ # up and labeling job failed. default=0
263+ '--maxCores' , str (args .toil_maxCores ),
264+ '--maxLocalJobs' , str (args .toil_maxLocalJobs ),
265+ '--disableAutoDeployment' , 'True' ,
266+ # Should auto-deployment of the user script be deactivated?
267+ # If True, the user script/package should be present
268+ # at the same location on all workers. Default = False.
269+ '--stats' ,
270+ # Records statistics about the toil workflow to be used by 'toil stats'.
271+ '--clusterStats' , args .toil_clusterStats ,
272+ '--workDir' , args .toil_workDir , # "This directory needs to exist on all machines running jobs."
273+ # i.e. /run/user/$UID/coorddir This is a local /tmpfs (in-memory) NOT NFS
274+ # "Absolute path to directory where Toil will keep state and lock files."
275+ '--coordinationDir' , args .toil_coordinationDir ,
276+ '--disableCaching' , # THIS NEEDS MORE DATA
277+ '--disableProgress' , # disable the progress bar in the terminal, saves UI cycle
253278 # TODO: Check --clean, --cleanWorkDir, --restart
254- '--clean' , 'always' , # This effectively disables caching, but is reproducible
279+ # '--clean', 'ne', # This effectively disables caching, but is reproducible
280+ '--cleanWorkDir' , 'never' ,
281+ '--clean' , 'never' ,
282+ '--slurmArgs' , args .toil_slurmArgs ,
283+ '--defaultCores' , str (args .toil_defaultCores ),
284+ '--logLevel' , args .toil_logLevel , # for debugging
285+ '--batchLogsDir' , args .toil_batchLogsDir ,
255286 f'autogenerated/{ yaml_stem } .cwl' , f'autogenerated/{ yaml_stem } _inputs.yml' ]
256287 cmdline = ' ' .join (cmd )
257288
0 commit comments