types#
Shared vocabulary of the resilient engine (standard library only).
Classes:
|
A restorable checkpoint written by the product (for example a case file). |
|
Result of classifying an exception. |
|
Machine-readable classification of an error raised by a settings call. |
|
Kinds of events reported by a resilient session. |
|
An event reported to listeners registered with |
|
How the engine responds to a classified error. |
|
Outcome of one intercepted settings write or command. |
Functions:
|
Return a compact, printable preview of a settings value. |
- class ansys.fluent.core.resilient.engine.types.Checkpoint(name, path, include_data, reason=None, journal_seq=0, created_at=<factory>)#
Bases:
objectA restorable checkpoint written by the product (for example a case file).
Attributes:
Journal position when the checkpoint was taken.
Methods:
to_dict()Return the checkpoint metadata as a plain dictionary.
-
journal_seq:
int= 0# Journal position when the checkpoint was taken. Journal operations with a sequence number at or above this value happened after the checkpoint.
- to_dict()#
Return the checkpoint metadata as a plain dictionary.
-
journal_seq:
- class ansys.fluent.core.resilient.engine.types.Classification(category, severity, message, details=None)#
Bases:
objectResult of classifying an exception.
Attributes:
Whether this is a clean solver stop rather than an error.
Whether this error makes the session unusable.
-
category:
ErrorCategory#
-
category:
- class ansys.fluent.core.resilient.engine.types.ErrorCategory(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
EnumMachine-readable classification of an error raised by a settings call.
Attributes:
A clean stop of an interruptible (solve) command.
The server is in a fatal state or no longer serving.
The target is read-only.
None of the above.
- BENIGN_INTERRUPT = 'benign_interrupt'#
A clean stop of an interruptible (solve) command.
- FATAL = 'fatal'#
The server is in a fatal state or no longer serving.
- READ_ONLY = 'read_only'#
The target is read-only.
- UNKNOWN = 'unknown'#
None of the above.
- class ansys.fluent.core.resilient.engine.types.EventKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
-
Kinds of events reported by a resilient session.
Attributes:
A checkpoint was written.
A standby session took over from a session that died.
A journaled settings write was redone.
The session was restored to a checkpoint.
A journaled settings write was undone.
Methods:
__new__(value)- CHECKPOINT = 'checkpoint'#
A checkpoint was written.
- FAILOVER = 'failover'#
A standby session took over from a session that died.
- REDO = 'redo'#
A journaled settings write was redone.
- ROLLBACK = 'rollback'#
The session was restored to a checkpoint.
- UNDO = 'undo'#
A journaled settings write was undone.
- __new__(value)#
- class ansys.fluent.core.resilient.engine.types.ResilientEvent(kind, message, path=None, data=<factory>)#
Bases:
objectAn event reported to listeners registered with
on_event.Attributes:
- class ansys.fluent.core.resilient.engine.types.Severity(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
EnumHow the engine responds to a classified error.
Attributes:
Not an error (clean solver stop).
The session is unusable; fail over to a standby session if one exists.
Not catastrophic; the original error is raised unchanged.
- BENIGN = 'benign'#
Not an error (clean solver stop).
- CATASTROPHIC = 'catastrophic'#
The session is unusable; fail over to a standby session if one exists.
- HARD = 'hard'#
Not catastrophic; the original error is raised unchanged.
- class ansys.fluent.core.resilient.engine.types.StepOutcome(path, ok, old_value=None, new_value=None, result=None, rolled_back=False, failed_over=False, error=None)#
Bases:
objectOutcome of one intercepted settings write or command.
Attributes:
Methods:
to_dict()Return the non-empty fields of the outcome as a plain dictionary.
- to_dict()#
Return the non-empty fields of the outcome as a plain dictionary.
- ansys.fluent.core.resilient.engine.types.brief(value)#
Return a compact, printable preview of a settings value.