Enhance simulation management and logging features

- Registered a cleanup function for simulation processes to ensure proper termination on server shutdown.
- Improved logging during application startup to confirm the registration of the cleanup function.
- Updated simulation preparation checks to clarify the conditions for considering a simulation ready, enhancing error handling and user feedback.
- Added detailed logging for simulation status changes, improving traceability during the simulation lifecycle.
- Introduced new files for simulation configuration and profile data, supporting enhanced testing and visualization capabilities.
This commit is contained in:
666ghj
2025-12-02 17:11:47 +08:00
parent 3cc5e3f479
commit d4fac63eb4
15 changed files with 8515 additions and 241 deletions

View File

@@ -0,0 +1,29 @@
{
"simulation_id": "sim_10b494550540",
"project_id": "proj_3a131695f17d",
"graph_id": "mirofish_7b076d2fd9d343ff",
"enable_twitter": true,
"enable_reddit": true,
"status": "running",
"entities_count": 93,
"profiles_count": 93,
"entity_types": [
"Organization",
"Student",
"MediaOutlet",
"University",
"GovernmentAgency",
"Alumni",
"Professor",
"Person",
"Official"
],
"config_generated": true,
"config_reasoning": "时间配置: 选择7天168小时模拟以覆盖事件爆发、传播高峰与中期余波以及可能的官方二次回应窗口15分钟为轮次粒度能较细致捕捉舆论节奏与突发放大。基于提供的活跃度系数北京时间0-5点系数0.05极低、6-8点0.4早高峰上升、9-18点0.7工作时间稳定传播、19-22点1.5晚间传播高峰、23点后0.5夜间下降。agents_per_hour_min/max由实体总数93作基准并考虑社媒放大与重复发帖理论最低在深夜极低活跃时接近实体数×0.05≈5为留有背景噪声与监测必要设为10最高考虑晚间放大效应与多平台多次激活转发、评论、媒体跟进、外省/海外放大等上限设为实体数×3.5≈326用于支持出现病毒式扩散与多源参与的情景。所有时间配置均以北京时间作息习惯为准以便模拟贴合中国网民与相关方的活跃节律。 | 事件配置: 选取关键词覆盖法律裁定、程序正义、信息透明、校园治理与外溢风险(捐赠、生源、师资)。叙事方向基于典型舆情发展规律:撤销处分会产生即时分化—支持司法正当性与要求校方问责并行。设计的初始帖以官方声明启动议题,媒体报道放大、学生与教师分别从情感与制度层面响应,校友/组织强调利益敏感性。建议监测指标情感倾向72小时变化、热搜标签、平台传播路径、校友捐赠意向与招生志愿变化、青年教师离职咨询量同时建议校方在24小时内提供透明时间表、独立调查机制与受害者救济措施以管控风险。 | Agent配置: 成功生成 93 个",
"current_round": 0,
"twitter_status": "not_started",
"reddit_status": "not_started",
"created_at": "2025-12-01T19:16:28.639107",
"updated_at": "2025-12-02T16:05:31.967519",
"error": null
}