Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313654
tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
820 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
from
celery
import
shared_task
from
swh.lister.sourceforge.lister
import
SourceForgeLister
@shared_task
(
name
=
__name__
+
".FullSourceForgeLister"
)
def
list_sourceforge_full
()
->
Dict
[
str
,
int
]:
"""Full update of a SourceForge instance"""
return
SourceForgeLister
.
from_configfile
()
.
run
()
.
dict
()
@shared_task
(
name
=
__name__
+
".IncrementalSourceForgeLister"
)
def
list_sourceforge_incremental
()
->
Dict
[
str
,
int
]:
"""Full update of a SourceForge instance"""
return
SourceForgeLister
.
from_configfile
(
incremental
=
True
)
.
run
()
.
dict
()
@shared_task
(
name
=
__name__
+
".ping"
)
def
_ping
():
return
"OK"
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Jul 3, 11:49 AM (5 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237510
Attached To
rDLS Listers
Event Timeline
Log In to Comment