Skip to content

delete_queue_limit_association

delete_queue_limit_association(
    farm_id: FarmId,
    queue_id: QueueId,
    limit_id: LimitId,
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
) -> DeleteQueueLimitAssociationResponse

Removes the association between a queue and a limit. You must use the UpdateQueueLimitAssociation operation to set the status to STOP_LIMIT_USAGE_AND_COMPLETE_TASKS or STOP_LIMIT_USAGE_AND_CANCEL_TASKS. The status does not change immediately. Use the GetQueueLimitAssociation operation to see if the status changed to STOPPED before deleting the association.

Parameters:

  • farm_id (FarmId) –

    The unique identifier of the farm that contains the queue and limit to disassociate.

  • queue_id (QueueId) –

    The unique identifier of the queue to disassociate.

  • limit_id (LimitId) –

    The unique identifier of the limit to disassociate.

Raises:

Source code in docs_src/capo_deadline/_services/deadline.py
def delete_queue_limit_association(
    self,
    farm_id: "capo_deadline.types.farm_id.FarmId",
    queue_id: "capo_deadline.types.queue_id.QueueId",
    limit_id: "capo_deadline.types.limit_id.LimitId",
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
) -> "capo_deadline.types.delete_queue_limit_association_response.DeleteQueueLimitAssociationResponse":
    """<p>Removes the association between a queue and a limit. You must use the <code>UpdateQueueLimitAssociation</code> operation to set the status to <code>STOP_LIMIT_USAGE_AND_COMPLETE_TASKS</code> or <code>STOP_LIMIT_USAGE_AND_CANCEL_TASKS</code>. The status does not change immediately. Use the <code>GetQueueLimitAssociation</code> operation to see if the status changed to <code>STOPPED</code> before deleting the association.</p>

    Args:
        farm_id: <p>The unique identifier of the farm that contains the queue and limit to disassociate.</p>
        queue_id: <p>The unique identifier of the queue to disassociate.</p>
        limit_id: <p>The unique identifier of the limit to disassociate.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.conflict_exception.ConflictException: <p>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.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_deadline.types.delete_queue_limit_association_request.DeleteQueueLimitAssociationRequest]",
    ) -> OperationResponse[
        "capo_deadline.types.delete_queue_limit_association_response.DeleteQueueLimitAssociationResponse"
    ]:
        import capo_deadline._operations.deadline.delete_queue_limit_association

        output, http_response = (
            capo_deadline._operations.deadline.delete_queue_limit_association.delete_queue_limit_association(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteQueueLimitAssociation")
    )
    input_: capo_deadline.types.delete_queue_limit_association_request.DeleteQueueLimitAssociationRequest = {
        "farm_id": farm_id,
        "queue_id": queue_id,
        "limit_id": limit_id,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output