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()