Metadata¶
- class Metadata(run_id: int, message_id: str, src_node_id: int, dst_node_id: int, reply_to_message_id: str, group_id: str, created_at: float, ttl: float, message_type: str, src_task_id: int | None = None, dst_task_id: int | None = None)[소스]¶
기반 클래스:
objectThe class representing metadata associated with the current message.
- 매개변수:
run_id (int) – 현재 실행에 대한 식별자입니다.
message_id (str) – 현재 메시지의 식별자입니다.
src_node_id (int) – 이 메시지를 보내는 노드의 식별자입니다.
dst_node_id (int) – 이 메시지를 수신하는 노드의 식별자입니다.
reply_to_message_id (str) – An identifier for the message to which this message is a reply.
group_id (str) – 메시지를 그룹화하기 위한 식별자입니다. 일부 설정에서는 FL 라운드로 사용됩니다.
created_at (float) – 메시지가 생성된 때의 Unix timestamp입니다.
ttl (float) – 이 메시지의 유효 시간(초)입니다.
message_type (str) – 수신 측에서 실행할 작업을 인코딩하는 문자열입니다.
src_task_id (Optional[int] (default: None)) – An identifier for the source task sending this message.
dst_task_id (Optional[int] (default: None)) – An identifier for the destination task receiving this message.
메소드
속성
메시지가 생성된 때의 Unix timestamp입니다.
Unix timestamp when the message was delivered.
이 메시지를 수신하는 노드의 식별자입니다.
An identifier for the destination task receiving this message.
메시지를 그룹화하기 위한 식별자입니다.
현재 메시지의 식별자입니다.
수신 측에서 실행할 작업을 인코딩하는 문자열입니다.
An identifier for the message to which this message is a reply.
현재 실행에 대한 식별자입니다.
이 메시지를 보내는 노드의 식별자입니다.
An identifier for the source task sending this message.
이 메시지를 기다리는 시간입니다.
- property created_at: float¶
메시지가 생성된 때의 Unix timestamp입니다.
- property delivered_at: str¶
Unix timestamp when the message was delivered.
- property dst_node_id: int¶
이 메시지를 수신하는 노드의 식별자입니다.
- property dst_task_id: int | None¶
An identifier for the destination task receiving this message.
- property group_id: str¶
메시지를 그룹화하기 위한 식별자입니다.
- property message_id: str¶
현재 메시지의 식별자입니다.
- property message_type: str¶
수신 측에서 실행할 작업을 인코딩하는 문자열입니다.
- property reply_to_message_id: str¶
An identifier for the message to which this message is a reply.
- property run_id: int¶
현재 실행에 대한 식별자입니다.
- property src_node_id: int¶
이 메시지를 보내는 노드의 식별자입니다.
- property src_task_id: int | None¶
An identifier for the source task sending this message.
- property ttl: float¶
이 메시지를 기다리는 시간입니다.