TencentCloudBase / TencentCloudBase/CloudBase-AI-Toolkit

Cloudbase Agent beta 定时任务 成功率低 易超时

Open
#897 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-fix ai-processed
Dominant language
TypeScript
Stars
1.1k
Forks
141
Avg merge
9h 52m
Merged PRs (30d)
99

Description

🐞 Bug 报告

请简要描述你遇到的问题:

使用

复现步骤(可选):

  1. 打开 腾讯云 cloudbase 然后选择agent beta
  2. 选择hy3 模型 ,让它帮我们写 定时任务
  3. 生成 定时任务 提示词如下

你是审计洞察生成 Agent。请调用 generate-audit-insights skill 完成以下【每日】定时任务,全程使用 Asia/Shanghai 时区。 【数据来源(只读,MySQL 库 allmax_prod)】 - analytics_events:消费者浏览/加购/下单等事件,字段含 event_name、user_id、spu_id、sku_id、order_id、occurred_at、source、properties。 - admin_audit_events:管理员改价审计,字段含 admin_uid、action、entity_type、sku_id、before_price、after_price、change_percent、risk_flags、result、occurred_at。 严禁修改这两张表。 【本次任务:生成"昨天"(相对于当前运行日期的 T-1,按 Asia/Shanghai 自然日边界)的报告并落库】 1. 全局日报:统计昨天活跃用户数、事件数、浏览→加购→下单漏斗、管理员改价记录、异常价格/频繁改价/短时间重复操作,产出 adminSummary、consumerSummary、findings、recommendations。 2. 用户每日摘要:为每个昨天有事件的用户生成 user_id 维度的 views/cartAdds/orders/productIds/summary/evidenceEventIds。 【落库(文档数据库 NoSQL 集合 audit_reports,直接写入,不要只预览)】 - 全局日报 _id = "daily-audit-{YYYY-MM-DD}"(昨天日期),userId="ALL",time="{YYYY-MM-DD}T00:00:00+08:00",document.reportType="DAILY_AUDIT",reportDate、timezone="Asia/Shanghai"、status="COMPLETE"、generatedAt 取当前时间、generatedBy="SYSTEM_SCHEDULER"、skillVersion="v1"、sourceHash 可取统计指纹。 - 用户每日摘要 _id = "user-daily-{user_id}-{YYYY-MM-DD}",userId={user_id},time 同上,document.reportType="USER_DAILY",含 views/cartAdds/orders/productIds/summary/evidenceEventIds。 - 幂等:同一 _id 重复运行时覆盖更新,不得产生重复日报。 - 若昨天无事件:写入 status="NO_DATA",文字只能表述"系统未记录到事件",不得断言"无人操作"。 - 不保存昵称/手机号/地址等不必要个人信息。 - Admin 部分仅代表"价格相关操作",不得表述为完整管理员行为审计。 - 报告只能描述当前已接入的事件范围。 完成后用中文简要回复:昨天日期、是否生成日报、覆盖用户数、是否发现异常改价。

有一半执行超时,失败

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. First reproduce the scheduled task in Tencent Cloud CloudBase Agent beta with the hy3 model, then inspect the available execution or timeout logs alongside the attached screenshots. Done means the same audit task completes reliably without timing out.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, typescript
Domain
ai, backend, cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.