Skip to content

Commit 81e457f

Browse files
Enable usage tracking in example configs (#3494)
1 parent a32886a commit 81e457f

20 files changed

+53
-11
lines changed

parsl/configs/ASPIRE1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from parsl.launchers import MpiRunLauncher
55
from parsl.monitoring.monitoring import MonitoringHub
66
from parsl.providers import PBSProProvider
7+
from parsl.usage_tracking.levels import LEVEL_1
78

89
config = Config(
910
executors=[
@@ -39,5 +40,6 @@
3940
strategy='simple',
4041
retries=3,
4142
app_cache=True,
42-
checkpoint_mode='task_exit'
43+
checkpoint_mode='task_exit',
44+
usage_tracking=LEVEL_1,
4345
)

parsl/configs/Azure.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from parsl.data_provider.rsync import RSyncStaging
99
from parsl.executors import HighThroughputExecutor
1010
from parsl.providers import AzureProvider
11+
from parsl.usage_tracking.levels import LEVEL_1
1112

1213
vm_reference = {
1314
# All fields below are required
@@ -33,5 +34,6 @@
3334
FTPInTaskStaging(),
3435
RSyncStaging(getpass.getuser() + "@" + address_by_query())],
3536
)
36-
]
37+
],
38+
usage_tracking=LEVEL_1,
3739
)

parsl/configs/ad_hoc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from parsl.config import Config
55
from parsl.executors import HighThroughputExecutor
66
from parsl.providers import AdHocProvider
7+
from parsl.usage_tracking.levels import LEVEL_1
78

89
user_opts: Dict[str, Dict[str, Any]]
910
user_opts = {'adhoc':
@@ -33,4 +34,5 @@
3334
],
3435
# AdHoc Clusters should not be setup with scaling strategy.
3536
strategy='none',
37+
usage_tracking=LEVEL_1,
3638
)

parsl/configs/bridges.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from parsl.executors import HighThroughputExecutor
44
from parsl.launchers import SrunLauncher
55
from parsl.providers import SlurmProvider
6+
from parsl.usage_tracking.levels import LEVEL_1
67

78
""" This config assumes that it is used to launch parsl tasks from the login nodes
89
of Bridges at PSC. Each job submitted to the scheduler will request 2 nodes for 10 minutes.
@@ -34,5 +35,6 @@
3435
cmd_timeout=120,
3536
),
3637
)
37-
]
38+
],
39+
usage_tracking=LEVEL_1,
3840
)

parsl/configs/cc_in2p3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from parsl.config import Config
33
from parsl.executors import HighThroughputExecutor
44
from parsl.providers import GridEngineProvider
5+
from parsl.usage_tracking.levels import LEVEL_1
56

67
config = Config(
78
executors=[
@@ -19,4 +20,5 @@
1920
),
2021
)
2122
],
23+
usage_tracking=LEVEL_1,
2224
)

parsl/configs/ec2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from parsl.config import Config
22
from parsl.executors import HighThroughputExecutor
33
from parsl.providers import AWSProvider
4+
from parsl.usage_tracking.levels import LEVEL_1
45

56
config = Config(
67
executors=[
@@ -25,4 +26,5 @@
2526
),
2627
)
2728
],
29+
usage_tracking=LEVEL_1,
2830
)

parsl/configs/expanse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from parsl.executors import HighThroughputExecutor
33
from parsl.launchers import SrunLauncher
44
from parsl.providers import SlurmProvider
5+
from parsl.usage_tracking.levels import LEVEL_1
56

67
config = Config(
78
executors=[
@@ -24,5 +25,6 @@
2425
nodes_per_block=2,
2526
),
2627
)
27-
]
28+
],
29+
usage_tracking=LEVEL_1,
2830
)

parsl/configs/frontera.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from parsl.executors import HighThroughputExecutor
44
from parsl.launchers import SrunLauncher
55
from parsl.providers import SlurmProvider
6+
from parsl.usage_tracking.levels import LEVEL_1
67

78
""" This config assumes that it is used to launch parsl tasks from the login nodes
89
of Frontera at TACC. Each job submitted to the scheduler will request 2 nodes for 10 minutes.
@@ -32,4 +33,5 @@
3233
),
3334
)
3435
],
36+
usage_tracking=LEVEL_1,
3537
)

parsl/configs/htex_local.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from parsl.config import Config
33
from parsl.executors import HighThroughputExecutor
44
from parsl.providers import LocalProvider
5+
from parsl.usage_tracking.levels import LEVEL_1
56

67
config = Config(
78
executors=[
@@ -15,4 +16,5 @@
1516
),
1617
)
1718
],
19+
usage_tracking=LEVEL_1,
1820
)

parsl/configs/illinoiscluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from parsl.executors import HighThroughputExecutor
33
from parsl.launchers import SrunLauncher
44
from parsl.providers import SlurmProvider
5+
from parsl.usage_tracking.levels import LEVEL_1
56

67
""" This config assumes that it is used to launch parsl tasks from the login nodes
78
of the Campus Cluster at UIUC. Each job submitted to the scheduler will request 2 nodes for 10 minutes.
@@ -25,4 +26,5 @@
2526
),
2627
)
2728
],
29+
usage_tracking=LEVEL_1,
2830
)

0 commit comments

Comments
 (0)