@kne/fastify-task 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,9 +173,8 @@ module.exports = fp(
173
173
  }
174
174
  },
175
175
  async function (request, reply) {
176
- const intervalSeconds = request.query.interval;
176
+ const intervalSeconds = request.query.interval ?? 5;
177
177
  const { timezone, type, runnerType } = request.query;
178
- reply.sse.keepAlive();
179
178
 
180
179
  async function* eventStream() {
181
180
  while (reply.sse.isConnected) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/fastify-task",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "一个 Fastify 插件,用于任务编排、追踪任务执行状态和结果。支持系统自动执行和手动执行两种模式,提供完整的任务生命周期管理",
5
5
  "main": "index.js",
6
6
  "scripts": {