Tasks#
Tasks defined by the news app. The full schedule, queue
routing, and worker invocation flags are in
Tasks. News-fetching tasks run on the
slow queue.
Fetching#
Fetches news for the given share. If no share (PK) was given fetches all of them from database walks thru them and downloads news for each of them.
- Parameters:
share (int) – Item PK.
- richy.news.tasks.download_etfs_news.__wrapped__(etf=None)#
Fetches news for the given ETF. If no ETF (PK) was given fetches all of them from database walks thru them and downloads news for each of them.
- Parameters:
etf (int) – Item PK.
Pruning#
- richy.news.tasks.delete_old_records.__wrapped__()#
Deletes older news than
settings.NEWS_PRUNE_THRESHOLD_DAYSdays.