def publish_predictions_to_core(self):
status = FAILED<EOL>msg = "<STR_LIT>"<EOL>try:<EOL><INDENT>msg = "<STR_LIT>"<EOL>log.info(msg)<EOL>publish_req = generate_ai_request(<EOL>predict_rows=self.df.fillna(<EOL>ANTINEX_MISSING_VALUE).to_dict("<STR_LIT>"),<EOL>req_dict=self.request_dict)<EOL>if publish_req["<STR_LIT:status>"] != SUCCESS:<EOL><INDENT>log.error(("<STR_LIT>")<EOL>.format(<EOL>publish_req["<STR_LIT:error>"]))<EOL>status = ERROR<EOL><DEDENT>else:<EOL><INDENT>msg = "<STR_LIT>".format(<EOL>ANTINEX_USER,<EOL>ANTINEX_URL,<EOL>ANTINEX_USE_MODEL_NAME)<EOL>log.info(msg)<EOL>response = self.client.run_job(<EOL>body=publish_req["<STR_LIT:data>"])<EOL>if response["<STR_LIT:status>"] == SUCCESS:<EOL><INDENT>log.info("<STR_LIT>")<EOL>status = SUCCESS<EOL><DEDENT>elif response["<STR_LIT:status>"] == FAILED:<EOL><INDENT>log.error(("<STR_LIT>")<EOL>.format(<EOL>response["<STR_LIT:error>"],<EOL>response["<STR_LIT:data>"]))<EOL>status = ERROR<EOL><DEDENT>elif response["<STR_LIT:status>"] == ERROR:<EOL><INDENT>log.error(("<STR_LIT>")<EOL>.format(<EOL>response["<STR_LIT:error>"],<EOL>response["<STR_LIT:data>"]))<EOL>status = ERROR<EOL><DEDENT>elif response["<STR_LIT:status>"] == LOGIN_FAILED:<EOL><INDENT>log.error(("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>.format(<EOL>response["<STR_LIT:error>"],<EOL>response["<STR_LIT:data>"]))<EOL>status = ERROR<EOL><DEDENT><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>log.error(("<STR_LIT>")<EOL>.format(<EOL>msg,<EOL>e))<EOL><DEDENT>return status<EOL>
publish_predictions_to_core