get_tasks can return pending or completed items