Disable scheduler nodes with ENV variable?

Hello !

I’d like to perform a n8n backup every day from production to our staging environment for several reasons (safety, test upgrades…)
The only thing, I suppose, that blocks me, is schedule workflows. Actually, I don’t want them to be triggered in this test instance. Do you know if there is a mean to deactivate them all ? Or do I need to modify the Database after the restore ?

Many thanks for your suggestions !

Regards,

Information on your n8n setup

  • n8n version: 1.73.1
  • Database (default: SQLite): postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Linux

Hi @Ludovic_PAQUET

You should be able to use this API reference | n8n Docs

Thanks,

that could be a solution even if workflows unfortunately can be triggered the time I need to call the api

You should also be able to set active to false before inserting the workflow.

1 Like

will try that :+1:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.