1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-24 10:54:48 +00:00

Continue converting tasks - email and upload tasks

This commit is contained in:
blitzmann
2020-08-22 22:44:28 -04:00
parent f10f0dada6
commit 2533c9c14e
6 changed files with 268 additions and 20 deletions

18
cps/tasks/upload.py Normal file
View File

@@ -0,0 +1,18 @@
from __future__ import division, print_function, unicode_literals
from datetime import datetime
from cps.services.worker import CalibreTask, STAT_FINISH_SUCCESS
class TaskUpload(CalibreTask):
def __init__(self, taskMessage):
super().__init__(taskMessage)
self.start_time = self.end_time = datetime.now()
self.stat = STAT_FINISH_SUCCESS
def run(self, worker_thread):
"""Upload task doesn't have anything to do, it's simply a way to add information to the task list"""
pass
@property
def name(self):
return "Upload"