Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
be2bec32
Commit
be2bec32
authored
3 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-1144
: use rough guesstimate of cache size for 10 subtasks times 488 dataproducts per subtask
parent
b0e76ca4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!635
Resolve TMSS-1144
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
+3
-2
3 additions, 2 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
with
3 additions
and
2 deletions
SAS/TMSS/backend/src/tmss/tmssapp/adapters/sip.py
+
3
−
2
View file @
be2bec32
from
lofar.sas.tmss.tmss.exceptions
import
*
from
lofar.sas.tmss.tmss.tmssapp.models.scheduling
import
Dataproduct
,
SubtaskType
,
Subtask
,
SubtaskOutput
,
SIPidentifier
,
HashAlgorithm
from
lofar.sas.tmss.tmss.tmssapp.models.scheduling
import
Dataproduct
,
SubtaskType
,
Subtask
,
SubtaskOutput
,
SubtaskState
,
SIPidentifier
,
HashAlgorithm
from
lofar.sas.tmss.tmss.tmssapp.models.specification
import
Datatype
,
Dataformat
from
lofar.lta.sip
import
siplib
,
ltasip
,
validator
,
constants
from
lofar.common.json_utils
import
add_defaults_to_json_object_for_schema
...
...
@@ -127,6 +127,7 @@ def add_subbtask_and_input_dataproducts_to_sip(subtask: Subtask, sip: siplib.Sip
sip
.
add_related_dataproduct
(
sip_dataproduct
,
return_xml
=
False
)
@lru_cache
(
maxsize
=
10
,
typed
=
False
)
def
create_sip_representation_for_subtask
(
subtask
:
Subtask
):
"""
Extract info from the TMSS subtask and create a sip object representation corresponding to the type of the subtask
...
...
@@ -273,7 +274,7 @@ def create_sip_representation_for_subtask(subtask: Subtask):
raise
TMSSException
(
"
The Subtask type %s cannot be represented in a SIP
"
%
subtask
.
specifications_template
.
type
.
value
)
@lru_cache
(
maxsize
=
256
,
typed
=
False
)
@lru_cache
(
maxsize
=
10
*
488
,
typed
=
False
)
def
create_sip_representation_for_dataproduct
(
dataproduct
:
Dataproduct
):
"""
Extract info from the TMSS dataproduct and creates a SIP object representation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment