Actions64
- 定时任务 Actions
- 订阅管理 Actions
- 环境变量 Actions
- 配置文件 Actions
- 脚本管理 Actions
- 依赖管理 Actions
- 日志管理 Actions
- 系统设置 Actions
Overview
This node integrates with the QingLong panel API to manage scheduled tasks (crontabs) and other related resources. Specifically, for the "定时任务" (Scheduled Task) resource and the "停止任务" (Stop Task) operation, it allows users to stop one or more running scheduled tasks by their IDs.
Common scenarios include:
- Temporarily halting specific scheduled jobs without deleting them.
- Managing task execution dynamically based on workflow conditions.
- Pausing tasks during maintenance or troubleshooting.
Practical example:
- You have multiple automated scripts running as scheduled tasks in QingLong. Using this node, you can select several task IDs and stop their execution immediately from within an n8n workflow.
Properties
| Name | Meaning |
|---|---|
| 任务列表【可多选】 | A multi-select list of scheduled task IDs to stop. Users can choose one or more tasks to halt. |
Output
The node outputs a JSON object under the json field containing the API response result from QingLong after attempting to stop the specified tasks. The structure typically includes success status and any relevant messages or data returned by the QingLong API.
No binary data output is produced by this operation.
Example output snippet:
{
"result": {
"success": true,
"message": "Tasks stopped successfully",
"stoppedTaskIds": [123, 456]
}
}
Dependencies
- Requires an API key credential for authenticating with the QingLong panel API.
- The node uses internal helper functions to obtain an authentication token and make HTTP requests to QingLong's REST endpoints.
- The user must configure the QingLong API credentials in n8n before using this node.
Troubleshooting
Common issues:
- Invalid or expired API token causing authentication failures.
- Specifying task IDs that do not exist or are already stopped.
- Network connectivity problems reaching the QingLong server.
Error messages:
"任务模块的停止任务操作暂未实现"("The stop task operation for the task module is not yet implemented"): This would indicate an unsupported operation, but according to the code, "停止任务" is implemented.- API errors returned from QingLong will be wrapped and thrown as node errors; check the message for details.
Resolutions:
- Verify API credentials and refresh tokens if necessary.
- Confirm the selected task IDs are valid and currently running.
- Ensure network access to the QingLong API endpoint.
Links and References
- QingLong API documentation: https://qinglong.online/api/
- n8n documentation on creating custom nodes: https://docs.n8n.io/integrations/creating-nodes/
- QingLong project homepage: https://qinglong.online/