Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Stingray
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
Stingray
Commits
2671d244
Commit
2671d244
authored
7 months ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Do not write empty files
parent
5f5b82ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#89574
passed
7 months ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: images
Stage: integration
Stage: publish
Stage: deploy
Pipeline: Stingray
#89575
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lofar_stingray/aggregate.py
+10
-4
10 additions, 4 deletions
lofar_stingray/aggregate.py
with
10 additions
and
4 deletions
lofar_stingray/aggregate.py
+
10
−
4
View file @
2671d244
...
@@ -69,7 +69,7 @@ def _round_datetime_ms(timestamp: datetime) -> datetime:
...
@@ -69,7 +69,7 @@ def _round_datetime_ms(timestamp: datetime) -> datetime:
return
timestamp
-
timedelta
(
microseconds
=
subtract_us
)
return
timestamp
-
timedelta
(
microseconds
=
subtract_us
)
def
main
():
def
main
()
->
int
:
"""
Parser main method
"""
"""
Parser main method
"""
logger
.
debug
(
"
Starting hdf5 converter
"
)
logger
.
debug
(
"
Starting hdf5 converter
"
)
...
@@ -93,9 +93,12 @@ def main():
...
@@ -93,9 +93,12 @@ def main():
# wait for data to arrive on S3
# wait for data to arrive on S3
logger
.
info
(
"
Waiting for metadata to arrive on S3 for %s
"
,
args
.
begin
)
logger
.
info
(
"
Waiting for metadata to arrive on S3 for %s
"
,
args
.
begin
)
_
=
metadata_storage
.
wait_for_packets
(
args
.
begin
)
if
not
metadata_storage
.
wait_for_packets
(
args
.
begin
):
logger
.
error
(
"
Metadata not available on S3
"
)
logger
.
info
(
"
Waiting for statistics to arrive on S3 for %s
"
,
args
.
end
)
logger
.
info
(
"
Waiting for statistics to arrive on S3 for %s
"
,
args
.
end
)
_
=
statistics_storage
.
wait_for_packets
(
args
.
end
)
if
not
statistics_storage
.
wait_for_packets
(
args
.
end
):
logger
.
error
(
"
Statistics not available on S3
"
)
return
1
# this is fatal
# aggregate data
# aggregate data
aggregator_args
=
(
aggregator_args
=
(
...
@@ -151,7 +154,10 @@ def main():
...
@@ -151,7 +154,10 @@ def main():
logger
.
info
(
"
Upload completed for %s
"
,
args
.
destination
)
logger
.
info
(
"
Upload completed for %s
"
,
args
.
destination
)
logger
.
info
(
"
Shutting down.
"
)
logger
.
info
(
"
Shutting down.
"
)
return
0
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
main
()
import
sys
sys
.
exit
(
main
())
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