Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322619
tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
657 B
Subscribers
None
tasks.py
View Options
# Copyright (C) 2015-2019 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
typing
import
Mapping
from
celery
import
shared_task
from
swh.deposit.loader.checker
import
DepositChecker
@shared_task
(
name
=
__name__
+
".ChecksDepositTsk"
)
def
check_deposit
(
collection
:
str
,
deposit_id
:
str
)
->
Mapping
[
str
,
str
]:
"""Check a deposit's status
Args: see :func:`DepositChecker.check`.
"""
checker
=
DepositChecker
()
return
checker
.
check
(
collection
,
deposit_id
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Tue, Jun 3, 7:39 AM (6 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237775
Attached To
rDDEP Push deposit
Event Timeline
Log In to Comment