Skip to content

Commit

Permalink
Update get_log_entries API
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Feb 3, 2025
1 parent 88b5a32 commit 48db9ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions openeogeotrellis/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
JobListing,
)
from openeo_driver.config.load import ConfigGetter
from openeo_driver.constants import DEFAULT_LOG_LEVEL_RETRIEVAL
from openeo_driver.datacube import DriverDataCube, DriverVectorCube
from openeo_driver.datastructs import SarBackscatterArgs
from openeo_driver.delayed_vector import DelayedVector
Expand Down Expand Up @@ -2789,9 +2790,11 @@ def _get_providers(self, job_id: str, user_id: str) -> List[dict]:
def get_log_entries(
self,
job_id: str,
*,
user_id: str,
offset: Optional[str] = None,
level: Optional[str] = None,
offset: Union[str, None] = None,
limit: Union[str, None] = None,
level: str = DEFAULT_LOG_LEVEL_RETRIEVAL,
) -> Iterable[dict]:
# will throw if job doesn't match user
job_info = self.get_job_info(job_id=job_id, user_id=user_id)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
tests_require=tests_require,
install_requires=[
"openeo>=0.33.0",
"openeo_driver>=0.124.0.dev",
"openeo_driver>=0.125.0.dev",
'pyspark==3.4.2; python_version>="3.8"',
'pyspark>=2.3.1,<2.4.0; python_version<"3.8"',
'geopyspark==0.4.7+openeo',
Expand Down

0 comments on commit 48db9ee

Please sign in to comment.