Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
ASTRON SDC
atdb-ldv
Commits
3e094567
Commit
3e094567
authored
10 months ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
also count 'finished', otherwise it will always show tasks finishing in the ingestq_status field)
parent
32184c4e
No related branches found
Branches containing commit
No related tags found
1 merge request
!351
solving some loose ends
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/services/activities_handler.py
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/services/activities_handler.py
with
1 addition
and
1 deletion
atdb/taskdatabase/services/activities_handler.py
+
1
−
1
View file @
3e094567
...
...
@@ -99,7 +99,7 @@ def update_activity(task):
# calculate the fraction and list of statusses of ingested tasks of this SAS_ID
if
task
.
status
in
[
State
.
SCRUBBED
.
value
,
State
.
PRE_ARCHIVING
.
value
,
State
.
PRE_ARCHIVED
.
value
,
State
.
ARCHIVING
.
value
,
State
.
ARCHIVED
.
value
,
State
.
FINISHING
.
value
]:
State
.
ARCHIVING
.
value
,
State
.
ARCHIVED
.
value
,
State
.
FINISHING
.
value
,
State
.
FINISHED
.
value
]:
logger
.
info
(
f
'
- calculate_ingested_fraction
'
)
result
=
calculate_ingested_fraction
(
task
)
activity
.
ingested_fraction
=
result
[
'
completion
'
]
...
...
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