Retrieves a list of the user's tasks. Args: project: The project to list operations for, uses the default set project if none is provided. Returns: A list of Operation status dictionaries, one for each task submitted to EE by the current user. These include currently running t
(project: str | None = None)
| 1607 | |
| 1608 | |
| 1609 | def listOperations(project: str | None = None) -> list[Any]: |
| 1610 | """Retrieves a list of the user's tasks. |
| 1611 | |
| 1612 | Args: |
| 1613 | project: The project to list operations for, uses the default set project |
| 1614 | if none is provided. |
| 1615 | Returns: |
| 1616 | A list of Operation status dictionaries, one for each task submitted to EE |
| 1617 | by the current user. These include currently running tasks as well as |
| 1618 | recently canceled or failed tasks. |
| 1619 | """ |
| 1620 | if project is None: |
| 1621 | project = _get_projects_path() |
| 1622 | operations = [] |
| 1623 | request = ( |
| 1624 | _get_cloud_projects() |
| 1625 | .operations() |
| 1626 | .list(pageSize=_TASKLIST_PAGE_SIZE, name=project) |
| 1627 | ) |
| 1628 | while request is not None: |
| 1629 | response = _execute_cloud_call(request) |
| 1630 | operations += response.get('operations', []) |
| 1631 | request = _get_cloud_projects().operations().list_next(request, response) |
| 1632 | return operations |
| 1633 | |
| 1634 | |
| 1635 | @deprecation.Deprecated('Use getOperation') |
no test coverage detected