This commit is contained in:
@ -12,6 +12,7 @@ project_name = "故事任意门"
|
|||||||
# for daily article generation
|
# for daily article generation
|
||||||
def job_generate_daily_article():
|
def job_generate_daily_article():
|
||||||
"""定时任务:生成每日文章并保存至数据库。"""
|
"""定时任务:生成每日文章并保存至数据库。"""
|
||||||
|
logger.info("Starting job: Generate Daily Article")
|
||||||
|
|
||||||
# 1. 调用 LLM 生成每日文章
|
# 1. 调用 LLM 生成每日文章
|
||||||
content = generate_daily_article()
|
content = generate_daily_article()
|
||||||
@ -73,6 +74,8 @@ def job_generate_daily_article():
|
|||||||
logger.info(f"Saved daily article audio to {audio_path}")
|
logger.info(f"Saved daily article audio to {audio_path}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Failed to synthesize/save daily article audio: {e}")
|
logger.error(f"Failed to synthesize/save daily article audio: {e}")
|
||||||
|
|
||||||
|
logger.info("Completed job: Generate Daily Article")
|
||||||
|
|
||||||
# For manual testing
|
# For manual testing
|
||||||
# if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user