Skip to content

Commit

Permalink
fixup! Issue #604/#644 add process_id to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Oct 14, 2024
1 parent ddc9ee5 commit 0f7a9bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/cookbook/job_manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ Multi Backend Job Manager
.. autoclass:: openeo.extra.job_management.ParquetJobDatabase

.. autoclass:: openeo.extra.job_management.UDPJobFactory
:members:
:special-members: __call__
7 changes: 3 additions & 4 deletions openeo/extra/job_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,13 +1014,12 @@ def _get_process_definition(self, connection: Connection) -> Process:

def start_job(self, row: pd.Series, connection: Connection, **_) -> BatchJob:
"""
Implementation of the `start_job` callable interface for MultiBackendJobManager:
Create and start a job based on given dataframe row
Implementation of the ``start_job`` callable interface
of :py:meth:`MultiBackendJobManager.run_jobs`
to create a job based on given dataframe row
:param row: The row in the pandas dataframe that stores the jobs state and other tracked data.
:param connection: The connection to the backend.
:return: The started job.
"""

process_definition = self._get_process_definition(connection=connection)
Expand Down

0 comments on commit 0f7a9bc

Please sign in to comment.