pablonaj - what's the best way to activate/deac...
what's the best way to activate/deactivate a cron job? I would like to have an even firing every day, but would like to have the option of it not running some days (I want to be able to chose on the same day if it runs or not).
Solution:Jump to solution
@pablonaj Currently, deleting the trigger or workflow stops/deactivates the workflow. For your case, you can just delete the Cron trigger, and replace it with REST API Trigger and then ship again. The cron will stop running.
6 Replies
Solution
@pablonaj Currently, deleting the trigger or workflow stops/deactivates the workflow. For your case, you can just delete the Cron trigger, and replace it with REST API Trigger and then ship again. The cron will stop running.
Hi I was thinking of some sort of switch, as I don't want to change or delete the workflow. Is there a way to setup a variable inside the workflow with a call?
I think a workaround would be to have a switch in the workflow and read a value from a Google sheet to see if it should execute the event or not. I would set that value in the sheet through another workflow. But I want to know if there's a more direct way.
@pablonaj, in BuildShip v2, you'll be able to set variable inside a workflow with a call.
For now the workaround you mentioned should be ideal.
thanks, didn't know there was a buildship v2 planned, any idea when that is coming?
very soon, you can signup here for early access - https://buildship.com/v2-early-access
BuildShip V2 | Visual Low-code Backend Builder
Get early access! Packed with powerful new workflow tools, exciting features, a community-first approach, and tons of fresh templates, nodes, and integrations!
thanks, I've signed up!