Skip to main content

Iterate through tasks

This function returns an iterator that iterates through the tasks satisfying the filters.

from abstra.tasks import iter_tasks

for task in iter_tasks():
# do something
task.complete()

Search filter

You can filter the tasks to be iterated through with the search filter parameters.

from abstra.tasks import iter_tasks

for task in iter_tasks(where={ "company": "Dunder Mifflin" }):
# do something
task.complete()

Parameters

ParameterDescriptionType
whereSpecifies a set of key-value pairs that define the filtering criteria for the query. Each key corresponds to a field in the records, and the value specifies the condition to match. The query will return only the records that satisfy all the specified conditions.dict