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
!938
Update DOT to 1.7 and add background task
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update DOT to 1.7 and add background task
update-dot-1.7
into
master
Overview
0
Commits
3
Pipelines
2
Changes
3
Merged
Nik | Klampfradler
requested to merge
update-dot-1.7
into
master
3 years ago
Overview
0
Commits
3
Pipelines
2
Changes
3
Expand
0
0
Merge request reports
Compare
master
version 1
d3eecace
3 years ago
master (base)
and
latest version
latest version
00c0cd80
3 commits,
3 years ago
version 1
d3eecace
2 commits,
3 years ago
3 files
+
14
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/tasks.py
+
8
−
0
Options
@@ -40,3 +40,11 @@ def backup_data() -> None:
# Hand off to dbbackup's management commands
management
.
call_command
(
"
dbbackup
"
,
*
db_options
)
management
.
call_command
(
"
mediabackup
"
,
*
media_options
)
@app.task
(
run_every
=
timedelta
(
days
=
1
))
def
clear_oauth_tokens
():
"""
Clear expired OAuth2 tokens.
"""
from
oauth2_provider.models
import
clear_tokens
# noqa
return
clear_tokens
()
Loading