Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322836
tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
753 B
Subscribers
None
tasks.py
View Options
# Copyright (C) 2019-2021 the Software Heritage developers
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
typing
import
Dict
,
Optional
from
celery
import
shared_task
from
swh.lister.phabricator.lister
import
PhabricatorLister
@shared_task
(
name
=
__name__
+
".FullPhabricatorLister"
)
def
list_phabricator_full
(
url
:
str
,
instance
:
str
,
api_token
:
Optional
[
str
]
=
None
)
->
Dict
[
str
,
int
]:
"""Full update of a Phabricator instance"""
return
(
PhabricatorLister
.
from_configfile
(
url
=
url
,
instance
=
instance
,
api_token
=
api_token
)
.
run
()
.
dict
()
)
@shared_task
(
name
=
__name__
+
".ping"
)
def
_ping
():
return
"OK"
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Tue, Jun 3, 7:50 AM (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237384
Attached To
rDLS Listers
Event Timeline
Log In to Comment