-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gangarc
3636 lines (2527 loc) · 110 KB
/
.gangarc
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
# Ganga configuration file ($Name: Ganga-8-7-9 $). DO NOT remove this line.
#comment
#=======================================================================
# All settings are commented out, so ganga will apply the default
# values automatically. Wherever possible these default values are indicated.
# To see which configuration settings are used, type at ganga prompt:
# print config
#
# Support of Atlas and LHCb-specific functionality:
#
# GANGA_CONFIG_PATH environment variable or --config-path option at the command
# line is used to enable LHCb or Atlas extensions.
# For example:
# $ export GANGA_CONFIG_PATH=GangaLHCb/LHCb.ini
# $ ganga
#
# In LHCb environment you do not need to worry about it because it is done
# by GangaEnv command automatically.
#
#=======================================================================
# Selection of central database for ganga
[CentralDatabaseConfiguration]
# the identifier used to tag the docker container
#containerName = NotImplementedError
# others have not been implemented yet
#database = NotImplementedError
# name of database
#dbname = NotImplementedError
# host
#host = NotImplementedError
# password
#password = NotImplementedError
# port
#port = NotImplementedError
# username
#username = NotImplementedError
#=======================================================================
# Settings for Condor Batch system
[Condor]
# Set maximum bytes to display with peek()
#MaxBytes = 1000000
# Query global condor queues, i.e. use '-global' flag
#query_global_queues = True
#=======================================================================
# global configuration parameters. this is a catch all section.
[Configuration]
# AutoStart the registries, needed to access any jobs in registry therefore
# needs to be True for 99.999% of use cases
#AutoStartReg = True
# default batch system
#Batch = LSF
# Run function call counters on Ganga Objects
#Count_Calls = False
# Time in seconds before a ganga session (lock file) is treated as a zombie and
# removed
#DiskIOTimeout = 45
# runtime warnings issued by the interpreter may be suppresed
#IgnoreRuntimeWarnings = False
# the search path for the load() function
#LOAD_PATH =
# Do not require an AFS token when running on an AFS filesystem. Not
# recommended!
#NoAfsToken = False
# Run cpu profiler on Ganga Objects
#Profile_CPU = False
# Run memory profiler on Ganga Objects
#Profile_Memory = False
# path to runtime plugin packages where custom handlers may be added. Normally
# you should not worry about it. If an element of the path is just a name (like
# in the example below) then the plugins will be loaded using current python
# path. This means that some packages such as GangaTest may be taken from the
# release area.
# Examples:
# RUNTIME_PATH = GangaDirac
# RUNTIME_PATH = /my/SpecialExtensions:GangaTest
#RUNTIME_PATH =
# Flag to print out the relevent subsection of release notes for each
# experiment at start up
#ReleaseNotes = True
# the search path to scripts directory. When running a script from the system
# shell (e.g. ganga script) this path is used to search for script
#SCRIPTS_PATH = Ganga/scripts
# The SMTP server for notification emails to be sent, default is localhost
#SMTPHost = localhost
# Port for the Ganga server to listen on
#ServerPort = 434343
# Timeout in minutes for auto-server shutdown
#ServerTimeout = 60
# Full path to user script to call periodically. The script will be executed as
# if called within Ganga by 'execfile'.
#ServerUserScript =
# Time in seconds between executions of the user script
#ServerUserScriptWaitTime = 300
# block of GPI commands executed at startup
#StartupGPI =
# The type of the interactive shell: IPython (cooler) or Console (limited)
#TextShell = IPython
# Directory where udocker will be installed for local jobs if used for
# virtualization
#UDockerlocation = ~
# Autogenerate workspace dirs for new jobs
#autoGenerateJobWorkspace = False
# Ask the user on exit if we should exit, (this is passed along to IPython)
#confirm_exit = True
# If set to ask the user is presented with a prompt asking whether Shared
# directories not associated with a persisted Ganga object should be deleted
# upon Ganga exit. If set to never, shared directories will not be deleted upon
# exit, even if they are not associated with a persisted Ganga object. If set
# to always (the default), then shared directories will always be deleted if
# not associated with a persisted Ganga object.
#deleteUnusedShareDir = always
# Ignore disk checking on startup
#force_start = False
# Location of local job repositories and workspaces. Default is ~/gangadir but
# in somecases (such as LSF CNAF) this needs to be modified to point to the
# shared file system directory.
#gangadir = /afs/cern.ch/user/h/hawu/gangadir
# Type of locking strategy which can be used. UNIX or FIXED . default = UNIX
#lockingStrategy = UNIX
# The default file extension for the named template system. If a package sets
# up their own by calling "establishNamedTemplates" from
# python/Ganga/GPIDev/Lib/Job/NamedJobTemplate.py in their ini file then they
# can override this without needing the config option
#namedTemplates_ext = tpl
# Determines if named template system stores templates in pickle file format
# (True) or in the Ganga streamed object format (False). By default streamed
# object format which is human readable is used. If a package sets up their own
# by calling "establishNamedTemplates" from
# python/Ganga/GPIDev/Lib/Job/NamedJobTemplate.py in their ini file then they
# can override this without needing the config option
#namedTemplates_pickle = False
# Type of the repository.
# Examples:
# LocalXML, Database
#repositorytype = LocalXML
# If TRUE (default), calling job.resubmit() will only resubmit FAILED subjobs.
# Note that the auto_resubmit mechanism will only ever resubmit FAILED subjobs.
#resubmitOnlyFailedSubjobs = True
# Path to the directory to store the file listing the used ganga versions
#used_versions_path = ~/.cache/Ganga/
# User name. The same person may have different roles (user names) and still
# use the same gangadir. Unless explicitly set this option defaults to the real
# user name.
#user = hawu
# Type of workspace. Workspace is a place where input and output sandbox of
# jobs are stored. Currently the only supported type is LocalFilesystem.
#workspacetype = LocalFilesystem
#=======================================================================
# This configures the credentials singleton
[Credentials]
# Seconds between checking credential on disk
#AtomicDelay = 1
# Seconds between auto-clean of credentials when proxy externally destroyed
#CleanDelay = 1
#=======================================================================
# Parameters for DIRAC
[DIRAC]
# The file containing the python commands that the local DIRAC server can
# execute.The default DiracCommands.py is added automatically
#DiracCommandFiles = ['/cvmfs/ganga.cern.ch/Ganga/install/8.7.9/lib/python3.11/site-packages/ganga/GangaDirac/Lib/Server/DiracDefinition.py', '/cvmfs/ganga.cern.ch/Ganga/install/8.7.9/lib/python3.11/site-packages/ganga/GangaDirac/Lib/Server/DiracCommands.py']
# DEPRECATED. Ganga environment file for DIRAC environment(do not change unless
# you are sure you know what you are doing).
#DiracEnvFile =
# A JSON file containing the environment for DIRAC. Overrides DiracEnvSource
#DiracEnvJSON = None
# File to be sourced to provide the DIRAC environment.E.g.
# /cvmfs/ganga.cern.ch/dirac_ui/bashrc
#DiracEnvSource = None
# Should the DiracFile object automatically poll the Dirac backend for missing
# information on an lfn?
#DiracFileAutoGet = True
# Base dir prepended to create LFN name from DiracFile('name'). If this is
# unset then it will default to/[userVO]/user/[first letter of user name]/[user
# name]
#DiracLFNBase =
# The Maximum allowed number of bulk submitted jobs before Ganga intervenes
#MaxDiracBulkJobs = 500
# If subset is above OfflineSplitterFraction*filesPerJob then keep the subset
#OfflineSplitterFraction = 0.75
# Number of iterations of selecting random Sites that are performed before the
# spliter reduces theOfflineSplitter fraction by raising it by 1 power and
# reduces OfflineSplitterMaxCommonSites by 1. Smallernumber makes the splitter
# accept many smaller subsets higher means keeping more subsets but takes much
# moreCPU to match files accordingly.
#OfflineSplitterLimit = 50
# Maximum number of storage sites all LFN should share in the same dataset.
# This is reduced to 1 as thesplitter gets more desperate to group the data.
#OfflineSplitterMaxCommonSites = 2
# Should the Sites chosen be accessing different Storage Elements.
#OfflineSplitterUniqueSE = False
# Determines whether outputdata stored on Dirac is replicated
#ReplicateOutputData = False
# Do we require the user to configure a defaultSE in some way?
#RequireDefaultSE = True
# Default timeout (seconds) for Dirac commands
#Timeout = 1000
# SE/Space-Tokens allowed for replication, writing files etc.
#allDiracSE = []
# Donwload output sandboxes by default
#default_downloadOutputSandbox = True
# Finalise all the subjobs in one go
#default_finaliseOnMaster = False
# Unpack output sandboxes by default
#default_unpackOutputSandbox = True
# Automatically download sandbox for failed jobs?
#failed_sandbox_download = True
# Mapping of Dirac to Ganga Job statuses used to construct a queue to finalize
# a given job, i.e. final statuesin 'statusmapping'
#finalised_statuses = {'Done': 'completed', 'Failed': 'failed', 'Killed': 'failed', 'Deleted': 'failed', 'Unknown: No status for Job': 'failed'}
# Whether or not to load the default dirac backend. This allows packagesto load
# a modified version if necessary
#load_default_Dirac_backend = True
# Set the maximum number of subjobs to be finalised per process. Not too high
# to avoid DIRAC timeouts
#maxSubjobsFinalisationPerProcess = 40
# Set the maximum number of subjobs to be submitted per process.
#maxSubjobsPerProcess = 100
# List of sites to ban when a user job has no input data (this is meant to
# reduce the load on these sites)
#noInputDataBannedSites = []
# The Maximum allowed number of Jobs to update the status for in parallel
#numParallelJobs = 1000
# Configurable which sets the default proxy init command for DIRAC
#proxyInfoCmd = dirac-proxy-info
# Configurable which sets the default proxy init command for DIRAC
#proxyInitCmd = dirac-proxy-init
# Developer option to serialize Dirac code for profiling/debugging
#serializeBackend = False
# when splitting datasets, pre split into chunks of this int
#splitFilesChunks = 5000
# Mapping between Dirac Job Major Status and Ganga Job Status
#statusmapping = {'Checking': 'submitted', 'Completed': 'running', 'Completing': 'running', 'Deleted': 'failed', 'Done': 'completed', 'Failed': 'failed', 'Killed': 'failed', 'Matched': 'submitted', 'Received': 'submitted', 'Running': 'running', 'Staging': 'submitted', 'Stalled': 'running', 'Waiting': 'submitted'}
# Should we use the Ganga job ID to auto-construct a LFN relative path?
#useGangaPath = False
# The name of the VO that the user belongs to
#userVO =
#=======================================================================
# Selection of database for ganga
[DatabaseConfiguration]
# Docker Image for the database
#baseImage = mongo
# Database Controller [native, docker, udocker, singularity, apptainer]
#controller = docker
# host
#host = localhost
# password
#password = default
# username
#username = default
#=======================================================================
# control the printing style of the different registries
# ("jobs","box","tasks"...)
[Display]
# list of job attributes to be printed in separate columns
#box_columns = ('id', 'type', 'name', 'application')
# optional converter functions
#box_columns_functions = {'application': 'lambda obj: obj.application._name'}
# apart from columns mentioned here, hide all values which evaluate to logical
# false (so 0,"",[],...)
#box_columns_show_empty = ['id']
# width of each column
#box_columns_width = {'id': 5, 'type': 20, 'name': 40, 'application': 15}
# colour print of the docstrings and examples
#config_docstring_colour = fg.green
# colour print of the names of configuration sections and options
#config_name_colour = fx.bold
# colour print of the configuration values
#config_value_colour = fx.bold
# list of job attributes to be printed in separate columns
#jobs_columns = ('fqid', 'status', 'name', 'subjobs', 'application', 'backend', 'backend.actualCE', 'comment', 'subjob status')
# optional converter functions
#jobs_columns_functions = {'subjobs': 'lambda j: len(j.subjobs)', 'application': 'lambda j: j.application.__class__.__name__', 'backend': 'lambda j:j.backend.__class__.__name__', 'comment': 'lambda j: j.comment', 'subjob status': 'lambda j: j.returnSubjobStatuses()'}
# apart from columns mentioned here, hide all values which evaluate to logical
# false (so 0,"",[],...)
#jobs_columns_show_empty = ['fqid']
# width of each column
# jobs_columns_width = {'fqid': 8, 'status': 10, 'name': 10, 'subjobs': 8, 'application': 15, 'backend': 15, 'backend.actualCE': 45, 'comment': 30, 'subjob status': 15}
jobs_columns_width = {'fqid': 5, 'status': 10, 'name': 10, 'subjobs': 8, 'backend': 8, 'comment': 7, 'subjob status': 15}
# colours for jobs status
#jobs_status_colours = {'new': 'fx.normal', 'submitted': 'fg.orange', 'running': 'fg.green', 'completed': 'fg.blue', 'failed': 'fg.red', 'completed_frozen': 'fg.boldgrey', 'failed_frozen': 'fg.boldgrey'}
# list of job attributes to be printed in separate columns
#tasks_columns = ('id', 'Type', 'Name', 'State', 'Comment', 'Jobs', '\x1b[44;97mdone\x1b[0;0m')
# optional converter functions
#tasks_columns_functions = {'Name': 'lambda t : t.name', 'Type': 'lambda task : task._name', 'State ': 'lambda task : task.status', 'Comment ': 'lambda task : task.comment', 'Jobs': 'lambda task : task.n_all()', '\x1b[44;97mdone\x1b[0;0m': "lambda task : task.n_status('completed')"}
# apart from columns listed here, hide all values which evaluate to logical
# false (so 0,"",[],...)
#tasks_columns_show_empty = ['id', 'Jobs', '\x1b[44;97mdone\x1b[0;0m']
# width of each column
#tasks_columns_width = {'id': 5, 'Type': 13, 'Name': 22, 'State': 9, 'Comment': 30, 'Jobs': 33, '\x1b[44;97mdone\x1b[0;0m': 5}
# change this to False if you do not want to see the help screen if you first
# type "tasks"
#tasks_show_help = True
#=======================================================================
# Settings for the Feedback plugin. Cannot be changed during the interactive
# Ganga session.
[Feedback]
# The server to connect to
#uploadServer = http://gangamon.cern.ch/django/errorreports
#=======================================================================
# Default associations between file types and file-viewing commands. The name
# identifies the extension and the value the commands. New extensions can be
# added. A single & after the command indicates that the process will be
# started in the background. A && after the command indicates that a new
# terminal will be opened and the command executed in that terminal.
[File_Associations]
# Default command to use if there is no association with the file type
#fallback_command = less
# Command for viewing html files.
#htm = firefox &
# Command for viewing html files.
#html = firefox &
# Command for listing the content of a directory
#listing_command = ls -ltr
# Command for opening a new terminal (xterm, gnome-terminal, ...
#newterm_command = xterm
# Option to give to a new terminal to tell it to execute a command.
#newterm_exeopt = -e
# Command for opening ROOT files.
#root = root.exe &&
# Command for opening tar files.
#tar = file-roller &
# Command for opening tar files.
#tgz = file-roller &
#=======================================================================
# Generic GAUDI based parameters
[GAUDI]
# The command used to make a CMT application.
#make_cmd = make
# Levels below InstallArea/[<platform>]/python to decend when looking for .py
# files to include
#pyFileCollectionDepth = 2
#=======================================================================
# Customization of GPI component object assignment for each category there may
# be multiple filters registered, the one used being defined in the
# configuration file in [GPIComponentFilters] e.g:
# {'datasets':{'lhcbdatasets':lhcbFilter, 'testdatasets':testFilter}...}
[GPIComponentFilters]
#datasets = string_dataset_shortcut
#files = string_file_shortcut_file
#gangafiles = string_datafile_shortcut_lhcb
#postprocessor = postprocessor_filter
#shareddirs = string_sharedfile_shortcut
#=======================================================================
# Customization of GPI behaviour. These options may affect the semantics of the
# Ganga GPI interface (what may result in a different behaviour of scripts and
# commands).
[GPI_Semantics]
# Keep on submitting as many subjobs as possible. Option to j.submit(), see Job
# class for details
#job_submit_keep_going = False
# Do not revert job to new status even if submission failed. Option to
# j.submit(), see Job class for details
#job_submit_keep_on_fail = False
#=======================================================================
# This controls the OAuth client used for connecting to Google
[Google]
# The client ID of the Oauth client that you have created yourself
#client_id =
# The client secret of the Oauth client that you have created yourself
#client_secret =
#=======================================================================
# Gridshell configuration parameters
[GridShell]
#GLITE_ALLOWED_WMS_LIST = []
# sets the LCG-UI environment setup script for the GLITE middleware
#GLITE_SETUP = /afs/cern.ch/sw/ganga/install/config/grid_env_auto.sh
# sets the WMProxy service to be contacted
#GLITE_WMS_WMPROXY_ENDPOINT =
# sets to True will load script-based glite-wms-* commands forcely with current
# python, a trick for 32/64 bit compatibility issues.
#IgnoreGliteScriptHeader = False
# sets the name of the grid virtual organisation
#VirtualOrganisation =
#=======================================================================
# Grid Simulator configuration parameters
[GridSimulator]
# probability that the Grid.cancel() method fails
#cancel_failure_rate = 0.0
# python expression which returns the time it takes (in seconds) to complete
# the Grid.cancel() command (also for subjob in bulk emulation)
#cancel_time = random.uniform(1,5)
# python expression which returns the time it takes (in seconds) to complete
# the get_output command (also for subjob in bulk emulation)
#get_output_time = random.uniform(1,5)
# probability of the job to enter the Failed state
#job_failure_rate = 0.0
# python expression which returns the time when the job enters the Done success
# or Failed state
#job_finish_time = random.uniform(10,20)
# python expression which returns the time it takes (in seconds) to complete
# the resolution of all the id of a subjob (when submitted in bulk) this is the
# time the NODE_ID becomes available from the monitoring)
#job_id_resolved_time = random.uniform(1,2)
# python expression which returns the time it takes (in seconds) to complete
# the status command (also for subjob in bulk emulation)
#status_time = random.uniform(1,5)
# probability that the Grid.submit() method fails
#submit_failure_rate = 0.0
# python expression which returns the time it takes (in seconds) to complete
# the Grid.submit() command (also for subjob in bulk emulation)
#submit_time = random.uniform(1,10)
#=======================================================================
# Parameters for LHCb
[LHCb]
# set LHCbDirac version
#LHCbDiracVersion = prod
# The name of the local site to be used for resolving LFNs into PFNs.
#LocalSite =
# Possible SplitByFiles backend algorithms to use to split jobs into subjobs,
# options are: GangaDiracSplitter, OfflineGangaDiracSplitter,
# splitInputDataBySize and splitInputData
#SplitByFilesBackend = OfflineGangaDiracSplitter
# List of user added LHCb applications split by ':'
#UserAddedApplications =
# The string that is added after the filename in the options to tell Gaudi how
# to read the data. This is the default value used if the file name does not
# match any of the patterns in datatype_string_patterns.
#datatype_string_default = TYP='POOL_ROOTTREE' OPT='READ'
# If a file matches one of these patterns, then the string here overrides the
# datatype_string_default value.
#datatype_string_patterns = {"SVC='LHCb::MDFSelector'": ['*.raw', '*.RAW', '*.mdf', '*.MDF']}
# The default platform for applications to use
#defaultPlatform = x86_64-centos7-gcc8-opt
# Files from these services will go to the output sandbox (unless
# overridden by the user in a specific job via the Job.outputfiles field).
# Files from all other known handlers will go to output data (unless
# overridden by the user in a specific job via the Job.outputfiles field).
#outputsandbox_types = ['CounterSummarySvc', 'NTupleSvc', 'HistogramPersistencySvc', 'MicroDSTStream', 'EvtTupleSvc']
#=======================================================================
# internal LSF command line interface
[LSF]
# Heartbeat frequency config variable
#heartbeat_frequency = 30
# Name of environment with ID of the job
#jobid_name = LSB_BATCH_JID
# String contains option name for name of job in batch system
#jobnameopt = J
# A list containing (1) a regular expression used to substitute illegal
# substrings in a job name, and (2) the substring to replace such occurences
# with.
#jobnamesubstitution = []
# String pattern for replay from the kill command
#kill_res_pattern = (^Job <\d+> is being terminated)|(Job <\d+>: Job has already finished)|(Job <\d+>: No matching job found)
# String used to kill job
#kill_str = bkill %s
# String contains commands executing before submiting job to queue
#postexecute =
# def filefilter(fn):
# # FILTER OUT Batch INTERNAL INPUT/OUTPUT FILES:
# # 10 digits . any number of digits . err or out
# import re
# internals = re.compile(r'\d{10}\.\d+.(out|err)')
# return internals.match(fn) or fn == '.Batch.start'
# String contains commands executing before submiting job to queue
#preexecute =
# Name of environment with queue name of the job
#queue_name = LSB_QUEUE
# Shared PYTHON
#shared_python_executable = False
# String pattern for defining the stderr
#stderrConfig = -e %s/stderr
# String pattern for defining the stdout
#stdoutConfig = -o %s/stdout
# String pattern for replay from the submit command
#submit_res_pattern = ^Job <(?P<id>\d*)> is submitted to .*queue <(?P<queue>\S*)>
# String used to submit job to queue
#submit_str = cd %s; bsub %s %s %s %s
# Timeout in seconds after which a job is declared killed if it has not touched
# its heartbeat file. Heartbeat is touched every 30s so do not set this below
# 120 or so.
#timeout = 600
#=======================================================================
# parameters of the local backend (jobs in the background on localhost)
[Local]
# The location where the workdir will be created. If None it defaults to the
# value of $TMPDIR
#location = None
# remove automatically the local working directory when the job completed
#remove_workdir = True
#=======================================================================
# control the messages printed by Ganga The settings are applied hierarchically
# to the loggers. Ganga is the name of the top-level logger which applies by
# default to all GangaCore.* packages unless overriden in sub-packages. You may
# define new loggers in this section. The log level may be one of: CRITICAL
# ERROR WARNING INFO DEBUG
[Logging]
# top-level logger
#Ganga = INFO
# logger of GangaCore.GPIDev.* packages
#GangaCore.GPIDev = INFO
# FIXME
#GangaCore.Runtime.bootstrap = INFO
# logger of the Ganga logging package itself (use with care!)
#GangaCore.Utility.logging = WARNING
#GangaLHCb = INFO
# enable ASCII colour formatting of messages e.g. errors in red
#_colour = True
# custom formatting string for Ganga logging e.g. '%(name)-35s:
# %(levelname)-8s %(message)s'
#_customFormat =
# format of logging messages: TERSE,NORMAL,VERBOSE,DEBUG
#_format = NORMAL
# if True then the cache used for interactive sessions, False disables caching
#_interactive_cache = True
# location of the logfile
#_logfile = ~/.ganga.log
# the size of the logfile (in bytes), the rotating log will never exceed this
# file size
#_logfile_size = 100000
#=======================================================================
# parameters for mergers
[Mergers]
# Dictionary of file associations
#associate = {'log': 'TextMerger', 'root': 'RootMerger', 'text': 'TextMerger', 'txt': 'TextMerger'}
# location of the merger's outputdir
#merge_output_dir = /afs/cern.ch/user/h/hawu/gangadir/merge_results
# Standard (default) merger
#std_merge = TextMerger
#=======================================================================
# External monitoring systems are used to follow the submission and execution
# of jobs. Each entry in this section defines a monitoring plugin used for a
# particular combination of application and backend. Asterisks may be used to
# specify any application or any backend. The configuration entry syntax:
# ApplicationName/BackendName = dot.path.to.monitoring.plugin.class. Example:
# DummyMS plugin will be used to track executables run on all backends:
# Executable/* = GangaCore.Lib.MonitoringServices.DummyMS.DummyMS
[MonitoringServices]
#=======================================================================
# configuration section for postprocessing the output
[Output]
# List of outputfile types that will be auto removed when job is removed if
# AutoRemoveFilesWithJob is True
#AutoRemoveFileTypes = ['DiracFile']
# if True, each outputfile of type in list AutoRemoveFileTypes will be removed
# when the job is
#AutoRemoveFilesWithJob = False
# fileExtensions:list of output files that will be written to DIRAC,
# backendPostprocess:defines where postprocessing should be done (WN/client) on
# different backends, uploadOptions:config values needed for the actual DIRAC
# upload
#DiracFile = {'fileExtensions': ['*.dst'], 'backendPostprocess': {'Dirac': 'submit', 'LSF': 'WN', 'PBS': 'WN', 'SGE': 'WN', 'Slurm': 'WN', 'Condor': 'WN', 'Local': 'WN', 'Interactive': 'WN'}, 'uploadOptions': {}, 'defaultSite': {'upload': 'CERN-USER', 'download': 'CERN-USER'}}
# if True, a job will be marked failed if output is asked for but not found.
#FailJobIfNoOutputMatched = True
# if True, writing to the job inputsandbox field will be forbidden
#ForbidLegacyInput = True
# fileExtensions:list of output files that will be written to GoogleDrive,
# backendPostprocess:defines where postprocessing should be done (WN/client) on
# different backends, uploadOptions:config values needed for the actual Google
# upload
#GoogleFile = {'fileExtensions': [], 'backendPostprocess': {'Dirac': 'client', 'LSF': 'client', 'PBS': 'client', 'SGE': 'client', 'Slurm': 'client', 'Condor': 'client', 'Local': 'client', 'Interactive': 'client'}, 'uploadOptions': {}}
# fileExtensions:list of output files that will be written to Local,
# backendPostprocess:defines where postprocessing should be done (WN/client) on
# different backends, uploadOptions:config values needed for the actual Local
# upload
#LocalFile = {'fileExtensions': ['*.txt'], 'backendPostprocess': {'Local': 'client', 'Interactive': 'client', 'LSF': 'client', 'SGE': 'client', 'Slurm': 'client', 'PBS': 'client', 'Condor': 'client', 'Dirac': 'client'}, 'uploadOptions': {}}
# fileExtensions:list of output files that will be written to Mass Storage,
# backendPostprocess:defines where postprocessing should be done (WN/client) on
# different backends, uploadOptions:config values needed for the actual EOS
# upload
#MassStorageFile = {'fileExtensions': [''], 'backendPostprocess': {'LSF': 'WN', 'PBS': 'WN', 'Condor': 'WN', 'SGE': 'WN', 'Slurm': 'WN', 'Local': 'WN', 'Interactive': 'client', 'Dirac': 'client'}, 'uploadOptions': {'mkdir_cmd': '/usr/bin/eos mkdir', 'cp_cmd': '/usr/bin/eos cp', 'ls_cmd': '/usr/bin/eos ls', 'rm_cmd': '/usr/bin/eos rm', 'path': '/eos/lhcb/user/h/hawu/ganga'}, 'defaultProtocol': 'root://eoslhcb.cern.ch'}
# name of the file that will contain the locations of the uploaded from the WN
# files
#PostProcessLocationsFileName = __postprocesslocations__
# fileExtensions:list of output files that will be written to Shared Storage,
# backendPostprocess:defines where postprocessing should be done (WN/client) on
# different backends, uploadOptions:config values needed for the actual
# SharedFS upload
#SharedFile = {'fileExtensions': [''], 'backendPostprocess': {'LSF': 'WN', 'Dirac': 'client', 'PBS': 'WN', 'SGE': 'WN', 'Slurm': 'WN', 'Condor': 'WN', 'Interactive': 'client', 'Local': 'WN'}, 'uploadOptions': {'path': '~', 'cp_cmd': 'cp', 'ls_cmd': 'ls', 'mkdir_cmd': 'mkdir'}, 'defaultProtocol': 'file://'}
#=======================================================================
# internal PBS command line interface
[PBS]
# Heartbeat frequency config variable
#heartbeat_frequency = 30
# Name of environment with ID of the job
#jobid_name = PBS_JOBID
# String contains option name for name of job in batch system
#jobnameopt = N
# A list containing (1) a regular expression used to substitute illegal
# substrings in a job name, and (2) the substring to replace such occurences
# with.
#jobnamesubstitution = ['[\\s]', '_']
# String pattern for replay from the kill command
#kill_res_pattern = (^$)|(qdel: Unknown Job Id)
# String used to kill job
#kill_str = qdel %s
# String contains commands executing before submiting job to queue
#postexecute =
# env = os.environ
# jobnumid = env["PBS_JOBID"]
# os.chdir("/tmp/")
# os.system("rm -rf /tmp/%s/" %jobnumid)
# String contains commands executing before submiting job to queue
#preexecute =
# env = os.environ
# jobnumid = env["PBS_JOBID"]
# os.system("mkdir /tmp/%s/" %jobnumid)
# os.chdir("/tmp/%s/" %jobnumid)
# os.environ["PATH"]+=":."
# Name of environment with queue name of the job
#queue_name = PBS_QUEUE
# Shared PYTHON
#shared_python_executable = False
# String pattern for defining the stderr
#stderrConfig = -e %s/stderr
# String pattern for defining the stdout
#stdoutConfig = -o %s/stdout
# String pattern for replay from the submit command
#submit_res_pattern = ^(?P<id>\d*)\.pbs\s*
# String used to submit job to queue
#submit_str = cd %s; qsub %s %s %s %s
# Timeout in seconds after which a job is declared killed if it has not touched
# its heartbeat file. Heartbeat is touched every 30s so do not set this below
# 120 or so.
#timeout = 600
#=======================================================================
# General control of plugin mechanism. Set the default plugin in a given
# category. For example: default_applications = DaVinci default_backends =
# Dirac
[Plugins]
#=======================================================================
# background job status monitoring and output retrieval
[PollThread]
# Poll rate for Condor backend.
#Condor = 30
# Poll rate for Dirac backend.
#Dirac = 50
# disk space checking callback. This function should return False when no disk
# space is available, True otherwise
#DiskSpaceChecker =
# Time before the user gets the warning that a thread has locked up due to
# failing to update the heartbeat attribute
#HeartBeatTimeOut = 9223372036854775807
# Poll rate for LSF backend.
#LSF = 20
# Poll rate for Local backend.
#Local = 10
# Maximum fraction of failed jobs before stopping automatic resubmission
#MaxFracForResubmit = 0.25
# Maximum number of automatic job resubmits to do before giving
#MaxNumResubmits = 5
# Poll rate for PBS backend.
#PBS = 20
# Poll rate for Panda backend.
#Panda = 50
# Check credentials using the monitoring loop
#autoCheckCredentials = True
# Maximum number of failed subjobs before a job is automatically killed by the
# monitoring.
#autoKillThreshold = 20
# enable monitoring automatically at startup, in script mode monitoring
# disabled by default, in interactive mode it is enabled
#autostart = True
# enable populating of the monitoring worker threads
#autostart_monThreads = True
# internal supervising thread
#base_poll_rate = 2
# The frequency in seconds for credentials checker
#creds_poll_rate = 30
# Default rate for polling job status in the thread pool. This is the default
# value for all backends.
#default_backend_poll_rate = 30
# The frequency in seconds for free disk checker
#diskspace_poll_rate = 30
# enable multiple threads to be used for running monitoring tasks
#enable_multiThreadMon = True
# User will get the FIRST prompt after N seconds, as specified by this
# parameter. This parameter also defines the time that Ganga will wait before
# shutting down, if there are only non-critical threads alive, in both
# interactive and batch mode.
#forced_shutdown_first_prompt_time = 5
# If there are remaining background activities at exit such as monitoring,
# output download Ganga will attempt to wait for the activities to complete.
# You may select if a user is prompted to answer if he wants to force shutdown
# ("interactive") or if the system waits on a timeout without questions
# ("timeout"). The default is "session_type" which will do interactive shutdown
# for CLI and timeout for scripts.
#forced_shutdown_policy = session_type
# User will get the prompt every N seconds, as specified by this parameter.
#forced_shutdown_prompt_time = 10
# Timeout in seconds for forced Ganga shutdown in batch mode.
#forced_shutdown_timeout = 60
# Poll rate for gLite backend.
#gLite = 30
# OBSOLETE: this option has no effect anymore
#max_shutdown_retries = 5
# Number of Jobs to update the status for in parallel
#numParallelJobs = 25
# if 0 then log only once the errors for a given backend and do not repeat them
# anymore
#repeat_messages = False
# Size of the thread pool. Each threads monitors a specific backaend at a given
# time. Minimum value is one, preferably set to the number_of_backends + 1
#update_thread_pool_size = 5
#=======================================================================
# Parameters for preparable applications
[Preparable]
# Unprepare a prepared application when it is copied
#unprepare_on_copy = False
#=======================================================================
# configuration section for the queues
[Queues]
# default number of worker threads in the queues system
#NumWorkerThreads = 5
# timeout before looping again over queue to give shutdown a chance
#ShutDownTimeout = 0.1
# default timeout for queue generated processes
#Timeout = None