def post_reply()

in utils/ryzenai/notification_service.py [0:0]


    def post_reply(self):
        if self.thread_ts is None:
            raise ValueError("Can only post reply if a post has been made.")

        for key, result in self.model_results.items():
            for failure in result["failures"]:
                blocks = self.get_reply_blocks(key, failure, text="test failure")

                print("Sending the following reply")
                print(json.dumps({"blocks": blocks}))

                client.chat_postMessage(
                    channel=os.environ["CI_SLACK_CHANNEL_ID"],
                    text=f"Results for {job}",
                    blocks=blocks,
                    thread_ts=self.thread_ts["ts"],
                )

                time.sleep(1)