tlc.core.objects.tables.system_tables.indexing#

Helper classes for indexing Urls and their content

Module Contents#

Classes#

Class

Description

TaskCounter

Keep track of the iterations and updates of a recurring task.

Functions#

Function

Description

blacklist_message

resolve_message

API#

class tlc.core.objects.tables.system_tables.indexing.TaskCounter(iter_count: int = 0, update_count: int = 0)#

Keep track of the iterations and updates of a recurring task.

This class maintains a count of how many cycles a task has gone through (iteration_count), as well as how many of those cycles resulted in an actual update (update_count).

increment(update: bool) None#

Increment counters based on the task’s activity.

Always increments the iteration_count by 1. If update is True, the update_count is also incremented by 1.

Parameters:

update – Indicates whether an update occurred during this cycle.

tlc.core.objects.tables.system_tables.indexing.blacklist_message(url: tlc.core.url.Url, exception: BaseException, backoff: datetime.timedelta | None) str#
tlc.core.objects.tables.system_tables.indexing.resolve_message(url: tlc.core.url.Url, exception: BaseException, force: bool) str#