Skip to main content
Glama
03.定时任务插件.md856 B
--- title: "定时任务插件" date: "2022-01-30T10:16:29.000Z" permalink: "/pages/plugin/task/" --- # 引入依赖 <dependency> <groupId>org.ssssssss</groupId> <artifactId>magic-api-plugin-task</artifactId> <version>magic-api-lastest-version</version> </dependency> # 配置 # 以下配置均可省略 magic-api: task: thread-name-prefix: magic-task- #线程池名字前缀 pool: size: 8 #线程池大小,默认值为CPU核心数 shutdown: awaitTermination: false #关闭时是否等待任务执行完毕,默认为false awaitTerminationPeriod: 10s # 关闭时最多等待任务执行完毕的时间 # 使用 在引入插件之后,重启项目,页面左侧就能看到对应的定时任务了,新建之后,填入cron表达式,名字,脚本信息即可。

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dwsy/magic-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server