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#

richy.news.tasks.download_share_news.__wrapped__(share=None)#

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.

richy.news.tasks.download_index_news.__wrapped__(index=None)#

Fetches news for the given index. If no index (PK) was given fetches all of them from database walks thru them and downloads news for each of them.

Parameters:

index (int) – Item PK.

richy.news.tasks.download_coin_news.__wrapped__(coin=None)#

Fetches news for the given coin. If no coin (PK) was given fetches all of them from database walks thru them and downloads news for each of them.

Parameters:

coin (int) – Item PK.

Pruning#

richy.news.tasks.delete_old_records.__wrapped__()#

Deletes older news than settings.NEWS_PRUNE_THRESHOLD_DAYS days.