Skip to content

Commit

Permalink
Merge pull request #260 from PanDAWMS/dev
Browse files Browse the repository at this point in the history
core | update conf for jobsarchive_y2021
  • Loading branch information
tkorchug authored Jan 25, 2024
2 parents 4d7b4b8 + 87709ba commit 712db46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions core/pandajob/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,10 @@ class Meta:
class Jobsarchived_y2020(PandaJobArch):
class Meta:
db_table = f'"{settings.DB_SCHEMA_PANDA_ARCH}"."y2020_jobsarchived"'
app_label = 'pandaarch'


class Jobsarchived_y2021(PandaJobArch):
class Meta:
db_table = f'"{settings.DB_SCHEMA_PANDA_ARCH}"."y2021_jobsarchived"'
app_label = 'pandaarch'
13 changes: 7 additions & 6 deletions core/pandajob/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""""""
import logging
from core.pandajob.models import Jobsarchived_y2014, Jobsarchived_y2015, Jobsarchived_y2016, Jobsarchived_y2017, \
Jobsarchived_y2018, Jobsarchived_y2019, Jobsarchived_y2020, Jobsarchived, Jobsarchived4
Jobsarchived_y2018, Jobsarchived_y2019, Jobsarchived_y2020, Jobsarchived_y2021, Jobsarchived, Jobsarchived4
from core.libs.datetimestrings import parse_datetime
from core.libs.job import is_event_service
from core.libs.exlib import get_event_status_summary, split_into_intervals
Expand All @@ -27,16 +27,16 @@ def get_pandajob_models_by_year(timewindow):
2018: [Jobsarchived_y2018, ],
2019: [Jobsarchived_y2019, ],
2020: [Jobsarchived_y2020, ],
2021: [Jobsarchived, ],
2021: [Jobsarchived_y2021, ],
2022: [Jobsarchived, ],
2023: [Jobsarchived, Jobsarchived4],
2023: [Jobsarchived, ],
2024: [Jobsarchived, Jobsarchived4],
}
else:
pjm_year_dict = {
2020: [Jobsarchived, ],
2021: [Jobsarchived, ],
2022: [Jobsarchived, ],
2023: [Jobsarchived, Jobsarchived4],
2023: [Jobsarchived, ],
2024: [Jobsarchived, Jobsarchived4],
}
pandajob_models = []

Expand Down Expand Up @@ -69,6 +69,7 @@ def get_pandajob_arch_models_by_year(timewindow):
2018: [Jobsarchived_y2018, ],
2019: [Jobsarchived_y2019, ],
2020: [Jobsarchived_y2020, ],
2021: [Jobsarchived_y2021, ],
}

pandajob_models = []
Expand Down

0 comments on commit 712db46

Please sign in to comment.