Search Background Task by its properties

The list_background_tasks has the all_environments parameter, but it would be nice to also search by task_name, start_time, is_running, etc. Optionally could be usefull tu use the query operators like any, all, etc.

This would remove the necessity of iterating to find running tasks or the task of a specific method.