simplify autobackups tasking to avoid deadlocks #97
No reviewers
Labels
No Label
Bug
Contributions welcome
Did not do
Duplicate
Feature
Module
Backups
Module
GraphQL
Priority
High
Priority
Low
Priority
Medium
Refactor
Severity
High
Severity
Low
Severity
Medium
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy-rest-api#97
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "fix-autobackup-typing"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
simplify autobackups tasking to avoid deadlocksto WIP: simplify autobackups tasking to avoid deadlocksShould this still be marked as a draft?
@ -4,3 +4,3 @@
from selfprivacy_api.jobs import Jobs, Job, JobStatus
from selfprivacy_api.services.service import Service
from selfprivacy_api.services import get_service_by_id
from selfprivacy_api.services import get_service_by_id, get_all_services
get_all_services is unused
@ -39,0 +45,4 @@
pretty_service_list: str = ", ".join(service_names)
job = Jobs.add(
type_id=autobackup_job_type(),
name=f"Automatic backup",
f-string without any placeholders
@ -15,6 +15,7 @@ from huey import crontab
from selfprivacy_api.services.service import Service
Looks like Service is no longer used in this file
@ -20,2 +20,3 @@
from selfprivacy_api.backup.jobs import autobackup_job_type
from tests.test_backup import backups
from tests.test_backup import backups, assert_job_finished
A bunch of unused imports in this file:
automatic_backup
backups
only_dummy_service
backups and dummy services are used, it is just pyflakes being strange
9a3b7652bf
tof840a6e204
WIP: simplify autobackups tasking to avoid deadlocksto simplify autobackups tasking to avoid deadlocks