LROPoller 클래스

장기 실행 작업에 대한 폴러입니다.

상속
LROPoller

생성자

LROPoller(client: Any, initial_response: Any, deserialization_callback: Callable[[Any], PollingReturnType_co], polling_method: PollingMethod[PollingReturnType_co])

매개 변수

Name Description
client
필수

파이프라인 서비스 클라이언트

initial_response
필수

초기 호출 응답

deserialization_callback
필수
callable 또는 <xref:msrest.serialization.Model>

Response를 사용하고 역직렬화된 개체를 반환하는 콜백입니다. Model의 하위 클래스가 제공되면 "deserialize"를 콜백으로 전달합니다.

polling_method
필수

채택할 폴링 전략

메서드

add_done_callback

작업의 상태 관계없이 장기 실행 작업이 완료되면 실행할 콜백 함수를 추가합니다.

continuation_token

나중에 폴러를 다시 시작할 수 있는 연속 토큰을 반환합니다.

done

장기 실행 작업의 상태 확인합니다.

from_continuation_token
polling_method

이 폴러에 연결된 폴링 메서드를 반환합니다.

remove_done_callback

장기 실행 작업에서 콜백을 제거합니다.

result

장기 실행 작업의 결과 또는 지정된 시간 제한 후에 사용할 수 있는 결과를 반환합니다.

status

현재 상태 문자열을 반환합니다.

wait

지정된 시간 동안 장기 실행 작업을 기다립니다. 이 호출이 "done()" 메서드를 사용하여 시간 제한으로 종료된 경우 검사 수 있습니다.

add_done_callback

작업의 상태 관계없이 장기 실행 작업이 완료되면 실행할 콜백 함수를 추가합니다.

add_done_callback(func: Callable) -> None

매개 변수

Name Description
func
필수

하나 이상의 인수인 완료된 LongRunningOperation을 사용하는 콜백 함수입니다.

continuation_token

나중에 폴러를 다시 시작할 수 있는 연속 토큰을 반환합니다.

continuation_token() -> str

반환

형식 Description
str

불투명 연속 토큰

done

장기 실행 작업의 상태 확인합니다.

done() -> bool

반환

형식 Description

프로세스가 완료되면 'True'이고, 그렇지 않으면 'False'입니다.

from_continuation_token

from_continuation_token(polling_method: PollingMethod[PollingReturnType_co], continuation_token: str, **kwargs: Any) -> LROPoller[PollingReturnType_co]

매개 변수

Name Description
polling_method
필수
continuation_token
필수

polling_method

이 폴러에 연결된 폴링 메서드를 반환합니다.

polling_method() -> PollingMethod[PollingReturnType_co]

반환

형식 Description

폴링 방법

remove_done_callback

장기 실행 작업에서 콜백을 제거합니다.

remove_done_callback(func: Callable) -> None

매개 변수

Name Description
func
필수

콜백에서 제거할 함수입니다.

예외

형식 Description

장기 실행 작업이 이미 완료된 경우 입니다.

result

장기 실행 작업의 결과 또는 지정된 시간 제한 후에 사용할 수 있는 결과를 반환합니다.

result(timeout: float | None = None) -> PollingReturnType_co

매개 변수

Name Description
timeout

제어를 다시 가져오기 전에 대기하는 기간입니다.

기본값: None

반환

형식 Description
any,

장기 실행 작업의 역직렬화된 리소스(사용 가능한 경우)입니다.

예외

형식 Description

쿼리에 대한 서버 문제입니다.

status

현재 상태 문자열을 반환합니다.

status() -> str

반환

형식 Description
str

현재 상태 문자열

wait

지정된 시간 동안 장기 실행 작업을 기다립니다. 이 호출이 "done()" 메서드를 사용하여 시간 제한으로 종료된 경우 검사 수 있습니다.

wait(timeout: float | None = None) -> None

매개 변수

Name Description
timeout
필수

장기 실행 작업이 완료되기를 기다리는 기간(초)입니다.

예외

형식 Description

쿼리에 대한 서버 문제입니다.