Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7451264
tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
904 B
Subscribers
None
tasks.py
View Options
# Copyright (C) 2015-2016 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
swh.scheduler.task
import
Task
from
.worker
import
ArchiverWithRetentionPolicyWorker
from
.worker
import
ArchiverToBackendWorker
class
SWHArchiverWithRetentionPolicyTask
(
Task
):
"""Main task that archive a batch of content.
"""
task_queue
=
'swh_storage_archive_worker'
def
run
(
self
,
*
args
,
**
kwargs
):
ArchiverWithRetentionPolicyWorker
(
*
args
,
**
kwargs
)
.
run
()
class
SWHArchiverToBackendTask
(
Task
):
"""Main task that archive a batch of content in the cloud.
"""
task_queue
=
'swh_storage_archive_worker_to_backend'
def
run
(
self
,
*
args
,
**
kwargs
):
ArchiverToBackendWorker
(
*
args
,
**
kwargs
)
.
run
()
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Apr 17, 10:18 AM (5 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3279124
Attached To
rDSTOC swh-storage-cassandra
Event Timeline
Log In to Comment