def check_publication_state(publication_id):
with db_connect() as db_conn:<EOL><INDENT>with db_conn.cursor() as cursor:<EOL><INDENT>cursor.execute("""<STR_LIT>""", (publication_id,))<EOL>publication_state, publication_messages = cursor.fetchone()<EOL><DEDENT><DEDENT>return publication_state, publication_messages<EOL>
Check the publication's current state.