MCPcopy
hub / github.com/google/earthengine-api / listOperations

Function listOperations

python/ee/data.py:1609–1632  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1607
1608
1609def 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')

Callers 1

getTaskListFunction · 0.85

Calls 6

_get_projects_pathFunction · 0.85
_get_cloud_projectsFunction · 0.85
_execute_cloud_callFunction · 0.85
listMethod · 0.80
operationsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected