Skip to content
Snippets Groups Projects
Commit 05af77f3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'add-default-schedule' into 'master'

Add default schedule for get_feeds task

See merge request AlekSIS/official/AlekSIS-App-DashboardFeeds!69
parents 3c08065a 47d39f4c
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. ...@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_, The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_. and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Changed
~~~~~~~
* ``get_feeds`` task is now automatically scheduled every 10 minutes
`2.0`_ - 2021-10-30 `2.0`_ - 2021-10-30
------------------- -------------------
......
from datetime import timedelta
from feeds.utils import update_feeds from feeds.utils import update_feeds
from aleksis.core.celery import app from aleksis.core.celery import app
@app.task @app.task(run_every=timedelta(minutes=10))
def get_feeds(): def get_feeds():
"""Update RSS feeds through django-feeds.""" """Update RSS feeds through django-feeds."""
return update_feeds(max_feeds=10) return update_feeds(max_feeds=10)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment