Taipy.core.exists
Check if an entity with the specified identifier exists.
This function checks if an entity with the given identifier exists.
It supports various types of entity identifiers, including TaskId
,
DataNodeId
, SequenceId
, ScenarioId
, JobId
, CycleId
, SubmissionId
, and string
representations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entity_id |
Union[DataNodeId, TaskId, SequenceId, ScenarioId, JobId, CycleId, SubmissionId, str]
|
The identifier of the entity to check for existence. |
required |
Returns:
Type | Description |
---|---|
bool
|
True if the given entity exists. False otherwise. |
Raises:
Type | Description |
---|---|
ModelNotFound
|
If the entity's type cannot be determined. |