diff --git a/docs/api.rst b/docs/api.rst index e40dff8..bff2919 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -28,10 +28,9 @@ API Docs Tasks API --------- .. automodule:: inspire_crawler.tasks - :members: submit_results, schedule_crawl - :undoc-members: - :show-inheritance: + :members: .. autotask:: inspire_crawler.tasks.submit_results +.. autotask:: inspire_crawler.tasks.schedule_crawl Signal receivers diff --git a/docs/conf.py b/docs/conf.py index 919df6b..03b7d1a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -85,6 +85,9 @@ def _warn_node(self, msg, *args, **kwargs): 'celery.contrib.sphinx', ] +# Remove default Celery sphinx task prefix +celery_task_prefix = '' + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/setup.py b/setup.py index 1fbde04..f1eb5a0 100644 --- a/setup.py +++ b/setup.py @@ -76,7 +76,7 @@ 'python-scrapyd-api>=2.0.1', 'pathlib2>=2.1.0', 'invenio-celery>=1.0.0a3', - 'celery<4.0', + 'celery>=4.0,<5.0', 'invenio_workflows~=7.0', 'invenio_oaiharvester>=1.0.0a3', ]