Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!509
Make data checks compatible with non-optional Celery
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Make data checks compatible with non-optional Celery
fix/data-checks-non-optional
into
master
Overview
0
Commits
3
Pipelines
2
Changes
2
Merged
Jonathan Weth
requested to merge
fix/data-checks-non-optional
into
master
4 years ago
Overview
0
Commits
3
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 2
64582b72
4 years ago
version 1
64582b72
4 years ago
master (base)
and
latest version
latest version
ddc1b47d
3 commits,
4 years ago
version 2
64582b72
1 commit,
4 years ago
version 1
64582b72
1 commit,
4 years ago
2 files
+
18
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/data_checks.py
+
4
−
4
Options
@@ -9,7 +9,7 @@ import reversion
from
reversion
import
set_comment
from
templated_email
import
send_templated_mail
from
.celery
import
app
from
.util
.celery
_progress
import
ProgressRecorder
,
recorded_task
from
.util.core_helpers
import
get_site_preferences
@@ -208,10 +208,10 @@ class DataCheckRegistry:
return
[(
check
.
name
,
check
.
verbose_name
)
for
check
in
cls
.
data_checks
]
@
app.
task
def
check_data
():
@
recorded_
task
def
check_data
(
recorder
:
ProgressRecorder
):
"""
Execute all registered data checks and send email if activated.
"""
for
check
in
DataCheckRegistry
.
data_checks
:
for
check
in
recorder
.
iterate
(
DataCheckRegistry
.
data_checks
)
:
logging
.
info
(
f
"
Run check:
{
check
.
verbose_name
}
"
)
check
.
check_data
()
Loading