-
Notifications
You must be signed in to change notification settings - Fork 41
/
law.cfg.example
1349 lines (1066 loc) · 50.4 KB
/
law.cfg.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; This file is an example of an (overcomplete) law configuration file.
;
; Table of contents:
;
; - Features of the law configuration parser
; - The law home directory
; - Configuration file resolution order
; - Inheritance and extensions
; - Option referencing
; - Environment variable expansion
; - The "None" value
; - Synchronization with environment variables
; - Synchronization with luigi configuration
;
; - law configuration
; - [core]
; - [modules]
; - [logging]
; - [task]
; - [target]
; - [local_fs]
; - [wlcg_fs]
; - [dropbox_fs]
; - [job]
; - [notifications]
; - [bash_sandbox]
; - [bash_sandbox_env]
; - [venv_sandbox]
; - [venv_sandbox_env]
; - [docker_sandbox]
; - [docker_sandbox_env]
; - [docker_sandbox_volumes]
; - [singularity_sandbox]
; - [singularity_sandbox_env]
; - [singularity_sandbox_volumes]
; - [cmssw_sandbox]
; - [cmssw_sandbox_env]
;
; Please note that configuration options of law contrib packages might also appear in sections of
; the general law configuration.
; === Features of the law configuration parser =====================================================
; --- The law home directory -----------------------------------------------------------------------
; The law home directory is the default location of a small number of files and directories that are
; created when working with law. Please refer to the particular configuration options below for more
; information. The law home directory defaults to "$LAW_HOME" or "$HOME/.law".
; --- Configuration file resolution order ----------------------------------------------------------
; Law configuration files are looked up in a certain order: "$LAW_CONFIG_FILE", "./law.cfg",
; "config" in the law home directory, or "etc/law/config". The config parser only reads the first
; existing file. Please also note the optional synchronization with environment variables described
; below.
; --- Inheritance and extensions -------------------------------------------------------------------
; The law configuration can inherit from or can be extended by additional configuration files. See
; the options "inherit" and "extends" in the "[core]" section of the law configuration below. The
; only difference between the two is that options defined in "inherit" do not overwrite those in the
; actual config, whereas options of "extend" do (options of extended config files are added _after_
; those in the actual config).
; --- Option referencing ---------------------------------------------------------------------------
; To avoid that some configurations are copied to other options (which is required in some cases),
; the law configuration parser supports references. The syntax for references to options in the same
; section is "&::other_option", and "&::other_section::other_option" for options in other sections.
; None is returned in case a reference cannot be resolved. The same applies to circular references.
; --- Environment variable expansion ---------------------------------------------------------------
; Configuration values that contain environment variables are automatically expanded by most getters
; of the law configuration parser, such as "get_expanded", "get_expanded_int", etc. If desired, you
; can avoid this expanion by backslash-escaping characters such as "$" or "~" to "\$" or "\~".
; --- The "None" value -----------------------------------------------------------------------------
; Getters of the law configuration parser such as "get_default", get_expanded", "get_expanded_int",
; etc., are configured to return a default value (which itself defaults to "None" (the NoneType)) in
; case an option is not existing. Sometimes it can be useful to actively declare an option as
; missing. This can be achieved by setting an option to "None" (string).
; --- Synchronization with environment variables ---------------------------------------------------
; In some scenarios it might be useful to control the value of some options via environment
; variables, for instance, when testing features or prototyping outside of an existing configuration
; file. For these cases, a synchronization mechanism is implemented that reads variables named
; "LAW__the_section__the_option" and overwrites the respective option with its value. This is
; enabled by default, but can be configured by the "sync_env" option in the "[core]" section.
; --- Synchronization with luigi configuration -----------------------------------------------------
; law is built on top of luigi and does not replace it. Therefore, another luigi-specfic
; configuration file is actually required. However, law provides a mechanism to define the luigi
; configuration right within the law configuration file. All sections starting with "luigi" plus
; underscore, e.g. "[luigi_worker]" are forwarded to luigi. Environment variable expansion is
; performed as well. This behavior is configurable by the "sync_luigi_config" option in the "[core]"
; section.
; === law configuration ============================================================================
; --- core section ---------------------------------------------------------------------------------
[core]
; law_home
; Description: The law home directory is the default location of a small number of files and
; directories that are created when working with law.
; Type: string
; Default: "$LAW_HOME", "$HOME/.law"
; index_file
; Description: The location of the file that contains a list of all tasks, their module, and their
; parameters for the purpose of fast autocompletion on the command line.
; Type: string
; Default: "$LAW_INDEX_FILE", "index" in the law home directory
; software_dir
; Description: The default location where softwar is copied to by the "law software" command. This
; can be especially useful for (e.g.) forwarding law and its dependencies into a container. Type
; "law software --help" for more info.
; Type: string
; Default: "$LAW_SOFTWARE_DIR", "software" in the law home directory
; inherit
; Description: A comma-separated list of files that this config is inheriting, i.e., their options
; do _not_ overwrite the ones defined in _this_ file. Relative paths are resolved with respect to
; _this_ file. Brace expansion, such as "myfile{1,2}.cfg" to "myfile1.cfg, myfile2.cfg" is applied.
; Type: string, list of strings
; Default: None
; extend
; Description: A comma-separated list of files that this config is extended by, i.e., their options
; _do_ overwrite the ones defined in _this_ file. Relative paths are resolved with respect to _this_
; file. Brace expansion, such as "myfile{1,2}.cfg" to "myfile1.cfg, myfile2.cfg" is applied.
; Type: string, list of strings
; Default: None
; sync_env
; Description: A boolean flag that decides whether the config should be synchronized with
; environment variables that have the format "LAW__the_section__the_option". When "True", the
; synchronization takes place after all defaults and config files were read.
; Type: boolean
; Default: True
; sync_luigi_config
; Description: A boolean flag that decides whether sections starting with "luigi" plus underscore
; should be synchronized with the luigi configuration.
; Type: boolean
; Default: True
; --- logging section ------------------------------------------------------------------------------
[logging]
; law
; Description: The log level of the law root logger. Accepted values are the default python log
; levels, i.e., NOTSET, DEBUG, INFO, WARNING, ERROR, or CRITICAL.
; Type: string
; Default: "$LAW_LOG_LEVEL", "WARNING"
; gfal2
; Description: Operations on remote targets are performed using the gfal2 package. This value
; defines the level of the "gfal2" logger.
; Type: string
; Default: "WARNING"
; Other loggers can be configured conveniently by adding "my_logger: my_level" to this section. For
; instance, "law.workflow.remote: DEBUG" will set the log level of the logger defined in
; "law/workflow/remote.py" to "DEBUG". Loggers that are not part of the "law" namespace are
; supported as well.
; --- modules section ------------------------------------------------------------------------------
[modules]
; This section only accepts options without values. They are interpreted as a list of modules that
; are loaded and checked for law tasks classes when "law index" is executed. This command creates
; the index file that contains a list of task names and their parameters for fast autocompletion on
; the command line.
; --- task section ---------------------------------------------------------------------------------
[task]
; colored_repr
; Description: A boolean flag that decides whether the output of "task.repr()" and "repr(task)" is
; colorized by default.
; Type: boolean
; Default: False
; colored_str
; Description: A boolean flag that decides whether the output of "str(task)" is colorized by
; default.
; Type: boolean
; Default: True
; interactive_format
; Description: The style of interactive task outputs, e.g. when adding "--print-status N" to a
; command. Possible values: plain, compact, fancy, fancy_compact.
; Type: string
; Default: "fancy"
; interactive_line_breaks
; Description: A boolean flag that decides whether smart line breaks should be used when printing
; interactive task outputs to terminal. Automatically disabled when the terminal width cannot be
; determined.
; Type: boolean
; Default: True
; interactive_line_width
; Description: The width of interactive task output when "interactive_line_breaks" is enabled. When
; zero or negative, the terminal size is obtained dynamically if possible.
; Type: integer
; Default: 0
; interactive_status_skip_seen
; Description: A boolean flag that decides whether during interactive task status traversal, e.g.
; when adding "--print-status N" to a command, tasks whose status has already been checked are
; not checked again in case they appear more than once in the dependency tree.
; Type: boolean
; Default: False
; --- target section -------------------------------------------------------------------------------
[target]
; colored_repr
; Description: A boolean flag that decides whether the output of "target.repr()" and "repr(target)"
; is colorized by default.
; Type: boolean
; Default: False
; colored_str
; Description: A boolean flag that decides whether the output of "str(target)" is colorized by
; default.
; Type: boolean
; Default: True
; expand_path_repr
; Description: A boolean flag that decides whether environment variables in paths of file targets
; are expanded in "repr(target)" and "str(target)".
; Type: boolean
; Default: False
; filesize_repr
; Description: A boolean flag that decides whether the file size is part of the representation for
; targets inheriting from "law.FileSystemTarget".
; Type: boolean
; Default: False
; default_local_fs
; Description: The name of the section to lookup for getting the configuration of a
; "law.target.local.LocalFileSystem".
; Type: string
; Default: "local_fs"
; tmp_dir
; Description: The directory in which temporary local targets are stored.
; Type: string
; Default: "$LAW_TARGET_TMP_DIR", "tempfile.gettempdir()"
; tmp_dir_perm
; Description: When the tmp_dir does not exist, it is created with this permission. When "None" or
; when "has_permissions" is "False", the current umask is used. The value can be expressed by an
; octal number.
; Type: integer, None
; Default: 0o0770
; --- Options of contrib packages
; default_wlcg_fs
; Description: The name of the section to lookup for getting the configuration of a
; "law.wlcg.WLCGFileSystem".
; Type: string
; Default: "wlcg_fs"
; default_dropbox_fs
; Description: The name of the section to lookup for getting the configuration of a
; "law.dropbox.DropboxFileSystem".
; Type: string
; Default: "dropbox_fs"
; --- local_fs section -----------------------------------------------------------------------------
[local_fs]
; base
; Description: The base path for accessing files on this file system. Its default refers to the root
; of the file system which should serve most uses cases where local file targets assigned to it
; define absolute paths on their own. However, setting a different value will prepend it to the
; paths used in all its operations.
; Type: str
; Default: "/"
; --- Options defined by "law.target.file.FileSystem"
; has_permissions
; Description: A boolean flag that signifies whether the file system should handle permissions,
; i.e., whether "chmod" operations should be evaluated. When "False", the current umask is used.
; Type: boolean
; Default: True
; default_file_perm
; Description: The default permission of newly created files. When "None", or when "has_permissions"
; is "False", the current umask is used. The value can be expressed by an octal number.
; Type: integer, None
; Default: None
; default_dir_perm
; Description: The default permission of newly created directories. When "None" or when
; "has_permissions" is "False", the current umask is used. The value can be expressed by an octal
; number.
; Type: integer, None
; Default: None
; create_file_dir
; Description: A boolean flag that signifies whether directories should be created when a file is
; created via open, copy, move or dump operations.
; Type: boolean
; Default: True
; --- Options defined by "law.target.local.LocalFileSystem"
; local_root_depth
; Description: Number of fragments of the absolute local path to check when local targets are used
; in "law.MirroredTarget"'s. The check is done pre-emptively on the local file system to ensure that
; a mount point with a path of the configured depth exists.
; Type: integer
; Default: 1
; --- wlcg_fs section ------------------------------------------------------------------------------
[wlcg_fs]
; Note:
; Remote file operations are handled by GFAL2. For more info, see https://github.com/cern-fts/gfal2.
; --- Options defined by "law.target.file.FileSystem"
; has_permissions
; Description: A boolean flag that signifies whether the file system should handle permissions,
; i.e., whether "chmod" operations should be evaluated. When "False", the current umask is used.
; Type: boolean
; Default: True
; default_file_perm
; Description: The default permission of newly created files. When "None" or when "has_permissions"
; is "False", the current umask is used. The value can be expressed by an octal number.
; Type: integer, None
; Default: None
; default_dir_perm
; Description: The default permission of newly created directories. When "None" or when
; "has_permissions" is "False", the current umask is used. The value can be expressed by an octal
; number.
; Type: integer, None
; Default: None
; create_file_dir
; Description: A boolean flag that signifies whether directories should be created when a file is
; created via open, copy, move or dump operations. When "False", the "gfal_transfer_create_parent"
; options should be set to "True" to ensure that intermediate directories are created.
; Type: boolean
; Default: False
; --- Options defined by "law.target.remote.RemoteFileInterface"
; base
; Description: The base path for accessing files on a WLCG storage element. It should with a
; protocol, such as "root://" or "gsiftp://", that can be handled by gfal. This value is required
; for the "law.wlcg.WLCGFileSystem" to work. Brace expansion into a list of paths is applied.
; Type: string, list of strings
; Default: None
; base_stat
; base_exists
; base_chmod
; base_unlink
; base_rmdir
; base_mkdir
; base_listdir
; base_filecopy
; Description: Different base paths for certain file or directory operations. When empty, the value
; of "base" is used for that operation. As an example, if you use a base path starting with
; "srm://...", you might want to choose a different protocol for listdir operations as SRM is too
; inefficient for directory listings (runtime linear to number of items). Brace expansion into a
; list of paths is applied.
; Type: string, list of strings
; Default: None
; retries
; Description: The default number of retries to perform when a file operation fails. The value can
; also be set per operation.
; Type: integer
; Default: 1
; retry_delay
; Description: The default amount of time to wait before retrying a failed file operation. The
; default unit is seconds. The value can also be set per operation.
; Type: integer, string
; Default: "5s"
; random_base
; Desciption: A boolean flag that, if a base path above is given as a list of paths, decides
; whether, by default, a random path should be chosen per file operation. When "True" and a file
; operation fails, the next attempt is made with a different yet still random base path. The exact
; behavior can also be set per operation.
; Type: boolean
; Default: True
; --- Options defined by "law.target.remote.RemoteFileSystem"
; validate_copy
; Description: A boolean flag that decides whether, by default, a validation should be performed
; after each file copy (or move) operation. The exact behavior can also be set per operation.
; Type: boolean
; Default: False
; use_cache
; Description: A boolean flag that decides whether, by default, certain operations (copy, move,
; open, etc.) should use the local cache (when existing). The exact behavior can also be set per
; operation.
; Type: boolean
; Default: False
; --- Options defined by "law.target.remote.RemoteCache"
; cache_root
; Description: The directory in which cached files from remote file operation should be stored. When
; "None" or empty, file caching is disabled. When "__TMP__", a temporary directory is created.
; Type: string
; Default: None
; cache_cleanup
; Description: A boolean flag that decides whether the cache should be removed when the program
; terminates.
; Type: boolean
; Default: False
; cache_max_size
; Description: The maximum size of the cache directory. When a file should be cached, but the
; maximum size is reached, files are deleted from the cache in order of their smallest modification
; time until enough disk space is freed. The default unit is MB. When zero or negative, the maximum
; cache size is equal to 90% of the available disk space.
; Type: integer, string
; Default: "0MB"
; cache_mtime_patience
; Description: The maximum amount of seconds that the modification time of remote of cached files
; can differ before considering a file invalid. A negative value means causes all files to be
; considered valid, independent of modification times. This feature might only be useful for file
; systems that are accessible via multiple protocols that might respond to stat requests with
; different timestamps for files that are known to be identical (e.g. large, identical files that
; are provided simultaneously by multiple central storage sites).
; Type: float
; Default: 1.0
; cache_file_perm
; Description: The permission of files in the cache. When "None" or empty, the current umask is
; used. The value can be expressed by an octal number.
; Type: integer
; Default: 0o0660
; cache_dir_perm
; Description: The permission of the cache root directory in case it is not existing yet and has to
; be created. When "None" or empty, the current umask is used. The value can be expressed by an
; octal number.
; Type: integer
; Default: 0o0770
; cache_wait_delay
; Description: The amount of time to wait for a file in the cache to be unlocked. The default unit
; is seconds.
; Type: integer, string
; Default: "5s"
; cache_max_waits
; Description: The maximum number of times to wait for a duration of "cache_wait_delay" for a file
; in the cache to be unlocked before an error is thrown that the file is unavailable.
; Type: integer
; Default: 120
; cache_global_lock
; Description: A boolean flag that decides whether each cache operation is locked by a global
; locking mechanism that prevents simultaneous cache access.
; Type: boolean
; Default: False
; --- Options defined by "law.gfal.GFAlFileInterface"
; gfal_atomic_contexts
; Description: A boolean flag that decides whether each operation of the gfal2 interface should be
; placed in its own gfal2 context. For the "law.wlcg.WLCGFileSystem" it is highly recommended to set
; this option to "True" to enfore that FTP connections are closed as soon as possible and remote
; resources are freed properly.
; Type: boolean
; Default: True
; gfal_transfer_timeout
; Description: The number of seconds after which file operations should be considered timed out.
; Type: integer
; Default: 3600
; gfal_transfer_checksum_check
; Description: A boolean flag that decides whether checksums should be checked after operations that
; create new files.
; Type: boolean
; Default: False
; gfal_transfer_nbstreams
; Description: The number of parallel streams for copying files.
; Type: integer
; Default: 1
; gfal_transfer_overwrite
; Description: A boolean flag that decides whether existing files should by overwritten by
; operations that would recreate them.
; Type: boolean
; Default: True
; gfal_transfer_create_parent
; Description: A boolean flag that decides whether intermediate, missing directories should be
; created automatically in certan file operations.
; Type: boolean
; Default: True
; gfal_transfer_strict_copy
; Description: A boolean flag that decides whether file copying should be done without source and
; destination checks.
; Type: boolean
; Default: False
; --- dropbox_fs section ---------------------------------------------------------------------------
[dropbox_fs]
; Note:
; Remote file operations are handled by GFAL2. For more info, see https://github.com/cern-fts/gfal2.
; To access files on your Dropbox, you to have to register an application to obtain credentials.
; Visit https://www.dropbox.com/developers for more information.
; --- Options defined by "law.dropbox.DropboxFileSystem"
; app_key
; Description: The Dropbox app key. This value is required for the "law.dropbox.DropboxFileSystem"
; to work.
; Type: string
; Default: None
; app_secret
; Description: The Dropbox app secret. This value is required for the
; "law.dropbox.DropboxFileSystem" to work.
; Type: string
; Default: None
; access_token
; Description: The Dropbox app access token. This value is required for the
; "law.dropbox.DropboxFileSystem" to work.
; Type: string
; Default: None
; --- Options defined by "law.target.file.FileSystem"
; has_permissions
; Description: A boolean flag that signifies whether the file system should handle permissions,
; i.e., whether "chmod" operations should be evaluated. When "False", the current umask is used.
; Type: boolean
; Default: True
; default_file_perm
; Description: The default permission of newly created files. When "None" or empty, or when
; "has_permissions" is "False", the current umask is used. The value can be expressed by an octal
; number.
; Type: integer
; Default: None
; default_dir_perm
; Description: The default permission of newly created directories. When "None" or empty, or when
; "has_permissions" is "False", the current umask is used. The value can be expressed by an octal
; number.
; Type: integer
; Default: None
; create_file_dir
; Description: A boolean flag that signifies whether directories should be created when a file is
; created via open, copy, move or dump operations. When "False", the "gfal_transfer_create_parent"
; options should be set to "True" to ensure that intermediate directories are created.
; Type: boolean
; Default: False
; --- Options defined by "law.target.remote.RemoteFileInterface"
; base
; Description: The base path for accessing files on your Dropbox. Normally, it should with
; "dropbox://dropbox.com/...". This value is required for the "law.dropbox.DropboxFileSystem" to
; work.
; Type: string, list of strings
; Default: None
; base_stat
; base_exists
; base_chmod
; base_unlink
; base_rmdir
; base_mkdir
; base_mkdir_rec
; base_listdir
; base_filecopy
; Description: Different base paths for certain file or directory operations. When empty, the value
; of "base" is used for that operation. For the "law.dropbox.DropboxFileSystem", setting different
; base paths is usually not required as Dropbox does not provide different entry points per
; operation type.
; Type: string, list of strings
; Default: None
; retries
; Description: The default number of retries to perform when a file operation fails. The value can
; also be set per operation.
; Type: integer
; Default: 1
; retry_delay
; Description: The default amount of time to wait before retrying a failed file operation. The
; default unit is seconds. The value can also be set per operation.
; Type: integer, string
; Default: "5s"
; random_base
; Desciption: A boolean flag that, if a base path above is given as a list of paths, decides
; whether, by default, a random path should be chosen per file operation. When "True" and a file
; operation fails, the next attempt is made with a different yet still random base path. The exact
; behavior can also be set per operation.
; Type: boolean
; Default: True
; --- Options defined by "law.target.remote.RemoteFileSystem"
; validate_copy
; Description: A boolean flag that decides whether, by default, a validation should be performed
; after each file copy (or move) operation. The exact behavior can also be set per operation.
; Type: boolean
; Default: False
; use_cache
; Description: A boolean flag that decides whether, by default, certain operations (copy, move,
; open, etc.) should use the local cache (when existing). The exact behavior can also be set per
; operation.
; Type: boolean
; Default: False
; --- Options defined by "law.target.remote.RemoteCache"
; cache_root
; Description: The directory in which cached files from remote file operation should be stored. When
; "None" or empty, file caching is disabled. When "__TMP__", a temporary directory is created.
; Type: string
; Default: None
; cache_cleanup
; Description: A boolean flag that decides whether the cache should be removed when the program
; terminates.
; Type: boolean
; Default: False
; cache_max_size
; Description: The maximum size of the cache directory. When a file should be cached, but the
; maximum size is reached, files are deleted from the cache in order of their smallest modification
; time until enough disk space is freed. The default unit is MB. When zero or negative, the maximum
; cache size is equal to 90% of the available disk space.
; Type: integer, string
; Default: "0MB"
; cache_file_perm
; Description: The permission of files in the cache. When "None" or empty, the current umask is
; used. The value can be expressed by an octal number.
; Type: integer
; Default: 0o0660
; cache_dir_perm
; Description: The permission of the cache root directory in case it is not existing yet and has to
; be created. When "None" or empty, the current umask is used. The value can be expressed by an
; octal number.
; Type: integer
; Default: 0o0770
; cache_wait_delay
; Description: The amount of time to wait for a file in the cache to be unlocked. The default unit
; is seconds.
; Type: integer, string
; Default: "5s"
; cache_max_waits
; Description: The maximum number of times to wait for a duration of "cache_wait_delay" for a file
; in the cache to be unlocked before an error is thrown that the file is unavailable.
; Type: integer
; Default: 120
; cache_global_lock
; Description: A boolean flag that decides whether each cache operation is locked by a global
; locking mechanism that prevents simultaneous cache access.
; Type: boolean
; Default: False
; --- Options defined by "law.gfal.GFAlFileInterface"
; gfal_atomic_contexts
; Description: A boolean flag that decides whether each operation of the gfal2 interface should be
; placed in its own gfal2 context.
; Type: boolean
; Default: True
; gfal_transfer_timeout
; Description: The number of seconds after which file operations should be considered timed out.
; Type: integer
; Default: 3600
; gfal_transfer_checksum_check
; Description: A boolean flag that decides whether checksums should be checked after operations that
; create new files.
; Type: boolean
; Default: False
; gfal_transfer_nbstreams
; Description: The number of parallel streams for copying files.
; Type: integer
; Default: 1
; gfal_transfer_overwrite
; Description: A boolean flag that decides whether existing files should by overwritten by
; operations that would recreate them.
; Type: boolean
; Default: overwrite
; gfal_transfer_create_parent
; Description: A boolean flag that decides whether intermediate, missing directories should be
; created automatically in certan file operations.
; Type: boolean
; Default: True
; gfal_transfer_strict_copy
; Description: A boolean flag that decides whether file copying should be done without source and
; destination checks.
; Type: boolean
; Default: False
; --- job section ----------------------------------------------------------------------------------
[job]
; job_file_dir
; Description: The location of the directory in which a job file factory saves temporary files that
; are used for job submission.
; Type: string
; Default: "$LAW_JOB_FILE_DIR", "tempfile.gettempdir()"
; job_file_dir_mkdtemp
; Description: A boolean flag or string that decides if a temporary directory inside job_file_dir
; should be created in which the actual job files are stored. It is discouraged to set this option
; to "False" in order to have a clear separation between files created by different job file
; factories. When a string is used it serves as a prefix for name of the temporary directory. More
; than three X's will be replaced with random characters and template variables "{{task_id}}" and
; "{{task_family}}" will be expanded with task values.
; Type: boolean, string
; Default: True
; job_file_dir_cleanup
; Description: A boolean flag that decides whether a job file factory should remove its file
; diretory once it is destructed. Set this option to "False" when the job submission system requires
; all jobs files to be present as long as jobs are running, or in case you want to debug the files
; later on.
; Type: boolean
; Default: False
; --- Options of contrib packages
; arc_job_file_dir
; arc_job_file_dir_mkdtemp
; arc_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "arc" prefix, but
; only apply to the "law.arc.ARCJobFileFactory". When "None" or not existing, the values above are
; used.
; arc_chunk_size_submit
; Description: Number of jobs that can be submitted in parallel inside a single call to
; "law.arc.ARCJobManager.submit", i.e., in a single "arcsub" command.
; Type: integer
; Default: 25
; arc_chunk_size_cancel
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.arc.ARCJobManager.cancel", i.e., in a single "arckill" command.
; Type: integer
; Default: 25
; arc_chunk_size_cleanup
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.arc.ARCJobManager.cleanup", i.e., in a single "arcclean" command.
; Type: integer
; Default: 25
; arc_chunk_size_query
; Description: Number of jobs whose status can be queried in parallel inside a single call to
; "law.arc.ARCJobManager.query", i.e., in a single "arcstat" command.
; Type: integer
; Default: 25
; glite_job_file_dir
; glite_job_file_dir_mkdtemp
; glite_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "glite" prefix, but
; only apply to the "law.glite.GLiteJobFileFactory". When "None" or not existing, the values above
; are used.
; glite_chunk_size_cancel
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.glite.GLiteJobManager.cancel", i.e., in a single "glite-ce-job-cancel" command.
; Type: integer
; Default: 25
; glite_chunk_size_cleanup
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.glite.GLiteJobManager.cleanup", i.e., in a single "glite-ce-job-purge" command.
; Type: integer
; Default: 25
; glite_chunk_size_query
; Description: Number of jobs whose status can be queried in parallel inside a single call to
; "law.glite.GLiteJobManager.query", i.e., in a single "glite-ce-job-status" command.
; Type: integer
; Default: 25
; htcondor_job_file_dir
; htcondor_job_file_dir_mkdtemp
; htcondor_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "htcondor" prefix,
; but only apply to the "law.htcondor.HTCondorJobFileFactory". When "None" or not existing, the
; values above are used. The only exception is "htcondor_job_file_dir_cleanup" whose default value
; is False.
; htcondor_job_grouping_submit
; Description: Whether to use job grouping (cluster submission in HTCondor nomenclature) or not. If
; not, the standard batched submission is used and settings such as "htcondor_chunk_size_submit" and
; "htcondor_merge_job_files" are considered.
; Type: boolean
; Default: True
; htcondor_chunk_size_submit
; Description: Number of jobs that can be submitted in parallel inside a single call to
; "law.htcondor.HTCondorJobManager.submit", i.e., in a single "condor_submit" command. Ignored when
; job grouping is enabled in "htcondor_job_grouping_submit".
; Type: integer
; Default: 25
; htcondor_chunk_size_cancel
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.htcondor.HTCondorJobManager.cancel", i.e., in a single "condor_rm" command.
; Type: integer
; Default: 25
; htcondor_chunk_size_query
; Description: Number of jobs whose status can be queried in parallel inside a single call to
; "law.htcondor.HTCondorJobManager.query", i.e., in a single "condor_q" or "condor_history" command.
; Type: integer
; Default: 25
; htcondor_merge_job_files
; Description: A boolean flag that decides whether multiple job description files should be merged
; into a single file before submission. Ignored when job grouping is enabled in
; "htcondor_job_grouping_submit". When "False", the "htcondor_chunk_size_submit" option is not
; considered either.
; Type: boolean
; Default: True
; lsf_job_file_dir
; lsf_job_file_dir_mkdtemp
; lsf_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "lsf" prefix, but
; only apply to the "law.lsf.LSFJobFileFactory". When "None" or not existing, the values above are
; used. The only exception is "lsf_job_file_dir_cleanup" whose default value is False.
; lsf_chunk_size_cancel
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.lsf.LSFJobManager.cancel", i.e., in a single "bkill" command.
; Type: integer
; Default: 25
; lsf_chunk_size_query
; Description: Number of jobs whose status can be queried in parallel inside a single call to
; "law.lsf.LSFJobManager.query", i.e., in a single "bjobs" command.
; Type: integer
; Default: 25
; slurm_job_file_dir
; slurm_job_file_dir_mkdtemp
; slurm_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "slurm" prefix, but
; only apply to the "law.slurm.SlurmJobFileFactory". When "None" or not existing, the values above
; are used. The only exception is "slurm_job_file_dir_cleanup" whose default value is False.
; slurm_chunk_size_cancel
; Description: Number of jobs that can be cancelled in parallel inside a single call to
; "law.slurm.SlurmJobManager.cancel", i.e., in a single "scancel" command.
; Type: integer
; Default: 25
; slurm_chunk_size_query
; Description: Number of jobs whose status can be queried in parallel inside a single call to
; "law.slurm.SlurmJobManager.query", i.e., in a single "squeue" or "sacct" command.
; Type: integer
; Default: 25
; crab_job_file_dir
; crab_job_file_dir_mkdtemp
; crab_job_file_dir_cleanup
; Description: These three options are identical to the ones above without the "crab" prefix, but
; only apply to the "law.cms.CrabJobFileFactory". When "None" or not existing, the values above are
; used.
; crab_work_area
; Description: The directory in which the "law.cms.CrabJobManager" will create crab project
; directories upon submission. Defaults to "crab_job_file_dir".
; Type: string
; Default: job.crab_job_file_dir
; crab_sandbox_name
; Description: The name of the "cmssw" sandbox to use which provides the crab executable. In its
; simplest form, this is just the version string of the CMSSW release to use. However, additional
; settings can be appended with the "::" delimiter in the format
; "cmssw_version::setting=value::setting=value" for more configurablity. Supported settings are
; "setup", an additional setup script that is executed inside the src directory during installation,
; "dir", a custom install directory, "arch", a custom scram architecture, and "cores", the number of
; CPU cores to use for installation.
; Type: string
; Default: CMSSW_10_6_30
; crab_password_file
; Description: A file containing the X509 certificate password for automatic proxy delegations by
; the "law.crab.CrabJobManager".
; Type: string
; Default: None
; --- notifications section ------------------------------------------------------------------------
[notifications]
; mail_recipient
; Description: The address of the recipient for notifications sent by
; "law.notification.notify_mail".
; Type: string
; Default: None
; mail_sender
; Description: The sender of notifications sent by "law.notification.notify_mail".
; Type: string
; Default: None
; mail_smtp_host
; Description: The SMTP host for notifications sent by "law.notification.notify_mail".
; Type: string
; Default: "127.0.0.1"
; mail_smtp_port
; Description: The SMTP port for notifications sent by "law.notification.notify_mail".
; Type: integer
; Default: 25
; --- Options of contrib packages
; slack_token
; Description: The token used for notifications sent by "law.slack.notify_slack".
; Type: string
; Default: None
; slack_channel
; Description: The channel used for notifications sent by "law.slack.notify_slack".
; Type: string
; Default: None