Page MenuHomeSoftware Heritage

tasks.py
No OneTemporary

tasks.py

# Copyright (C) 2017-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 celery import shared_task
from .lister import DebianLister
@shared_task(name=__name__ + ".DebianListerTask")
def list_debian_distribution(**lister_args):
"""List a Debian distribution"""
return DebianLister.from_configfile(**lister_args).run().dict()
@shared_task(name=__name__ + ".ping")
def _ping():
return "OK"

File Metadata

Mime Type
text/x-python
Expires
Jul 4 2025, 7:32 PM (8 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237339

Event Timeline