『n8n』工作流的“活动(Activate)”去哪了?

2026-03-03 09:18:46 0点赞 0收藏 0评论

点赞 + 关注 + 收藏 = 学会了

整理了一个n8n小专栏,有兴趣的工友可以关注一下 👉 《n8n修炼手册》

可能有些工友看了旧版的教程,发现工作流顶部导航栏里有一个“活跃(Activate)”按钮。

『n8n』工作流的“活动(Activate)”去哪了?

后台问我,为什么自己的却是这样的。

『n8n』工作流的“活动(Activate)”去哪了?

“活跃(Activate)”按钮旷工了吗?

那定时任务怎么办?n8n 还能不能用了?

别方,新版的(本文使用的版本是 2.6.3)“活跃(Activate)”被取消掉了,如果你的工作流有定时任务,直接点击“Publish”按钮一样会定时定候自动工作。

我搞个简单的定时任务证明一下。

每10秒中生成一个名字和内容都是「年月日时分秒」的txt文件。『n8n』工作流的“活动(Activate)”去哪了?

这个工作流的 JSON 文件放在文末,有需要的工友可以拿去测试一下。

点击工作流右上角的“Publish”按钮,它就会变成“Published”,并且左侧还有个小绿点。

『n8n』工作流的“活动(Activate)”去哪了?

此时定时任务就已经开始工作了。

打开 n8n 文件存储的文件夹可以看到每隔10秒就会生成要给 .txt 文件。

『n8n』工作流的“活动(Activate)”去哪了?

就算你关掉 n8n 页面它也会继续运行。

如果想关掉定时器,就要找到这个工作流,然后点击它的“Unpublish”按钮才能停下来。

『n8n』工作流的“活动(Activate)”去哪了?

本文示例的工作流。

{   "name": "测试定时任务",   "nodes": [     {       "parameters": {         "operation": "toText",         "sourceProperty": "title",         "options": {}       },       "type": "n8n-nodes-base.convertToFile",       "typeVersion": 1.1,       "position": [         512,         0       ],       "id": "7292c851-10c2-4a44-a708-dd58bc3f0f89",       "name": "Convert to File"     },     {       "parameters": {         "assignments": {           "assignments": [             {               "id": "876bfd58-b014-43d4-9990-2826d028e562",               "name": "title",               "value": "={{ $now.toFormat('yyyyMMddHHmmss') }}",               "type": "string"             }           ]         },         "options": {}       },       "type": "n8n-nodes-base.set",       "typeVersion": 3.4,       "position": [         288,         0       ],       "id": "90a6b894-6564-4c95-b49e-39b685be009c",       "name": "Edit Fields"     },     {       "parameters": {         "operation": "write",         "fileName": "={{ `/home/node/.n8n-files/${$now.toFormat('yyyyMMddHHmmss')}.txt` }}",         "options": {}       },       "type": "n8n-nodes-base.readWriteFile",       "typeVersion": 1.1,       "position": [         736,         0       ],       "id": "282036a8-f1d6-4d51-8e88-61c238d94878",       "name": "Read/Write Files from Disk1"     },     {       "parameters": {         "rule": {           "interval": [             {               "field": "seconds",               "secondsInterval": 10             }           ]         }       },       "type": "n8n-nodes-base.scheduleTrigger",       "typeVersion": 1.3,       "position": [         64,         0       ],       "id": "c3bb6706-1f39-4161-a2e5-7b3a8253a7b8",       "name": "Schedule Trigger"     }   ],   "pinData": {},   "connections": {     "Edit Fields": {       "main": [         [           {             "node": "Convert to File",             "type": "main",             "index": 0           }         ]       ]     },     "Convert to File": {       "main": [         [           {             "node": "Read/Write Files from Disk1",             "type": "main",             "index": 0           }         ]       ]     },     "Schedule Trigger": {       "main": [         [           {             "node": "Edit Fields",             "type": "main",             "index": 0           }         ]       ]     }   },   "active": false,   "settings": {     "executionOrder": "v1",     "binaryMode": "separate",     "availableInMCP": false   },   "versionId": "4f3e7f88-c69c-4a4d-a6c8-9eda94fea91d",   "meta": {     "instanceId": "8b30a8ba058f5126b4f4e9373018ce0596139a4d2028982510061e844b858b71"   },   "id": "POOpHifJ6XWEsOVdjYblV",   "tags": [] }


以上就是本文的全部内容啦,想了解更多n8n玩法欢迎关注《n8n修炼手册》👏

如果你有 NAS,我非常建议你在 NAS 上部署一套 n8n,搞搞副业也好,帮你完成工作任务也好 《『NAS』不止娱乐,NAS也是生产力,在绿联部署AI工作流工具-n8n》

点赞 + 关注 + 收藏 = 学会了

 

作者声明本文无利益相关,欢迎值友理性交流,和谐讨论~

展开 收起
0评论

当前文章无评论,是时候发表评论了
提示信息

取消
确认
评论举报

相关文章推荐

更多精彩文章
更多精彩文章
最新文章 热门文章
0
扫一下,分享更方便,购买更轻松