update_session
async
¶
update_session(
farm_id: FarmId,
queue_id: QueueId,
job_id: JobId,
session_id: SessionId,
target_lifecycle_status: SessionLifecycleTargetStatus,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateSessionResponse
Updates a session.
Parameters:
-
farm_id(FarmId) –The farm ID to update in the session.
-
queue_id(QueueId) –The queue ID to update in the session.
-
job_id(JobId) –The job ID to update in the session.
-
session_id(SessionId) –The session ID to update.
-
client_token(Optional[ClientToken], default:None) –The unique token which the server uses to recognize retries of the same request.
-
target_lifecycle_status(SessionLifecycleTargetStatus) –The life cycle status to update in the session.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/async_deadline.py
8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 | |