Retrieve function schedule

async AsyncCogniteClient.functions.schedules.retrieve(
id: int | Sequence[int],
ignore_unknown_ids: bool = False,
) FunctionSchedule | None | FunctionSchedulesList

Retrieve a single function schedule by id.

Parameters:
  • id (int | Sequence[int]) – Schedule ID

  • ignore_unknown_ids (bool) – Ignore IDs that are not found rather than throw an exception.

Returns:

Requested function schedule or None if not found.

Return type:

FunctionSchedule | None | FunctionSchedulesList

Examples

Get function schedule by id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.functions.schedules.retrieve(id=1)