"Do every X seconds" with computer turned off

Hi! I have a page that does things every 60 seconds (using a “do every 60 seconds” action in a workflow). The problem is that the computer (the browser, actually) has to be on. Is there any way to make this whole thing work without the computer and browser on? My gut feeling is this is not possible and I would need to move this to a Heroku think to make the operations server-side, but who knows…

Thanks a lot!

You’ll need to use a scheduled recurring workflow. I don’t think there’s a way to do it every minute, tho

1 Like

You could use Schedule within Zapier to call a Bubble endpoint and trigger a workflow, however I think the highest frequency on offer is every 60 minutes.

Another option would be to create a simple script in Google Scripts and create a Trigger for it to run every minute. Instructions for time based trigger here and a video on calling an API from Google Sheets / Scripts here.

Both a bit workaround-y but maybe worth a try.

2 Likes

This is entirely doable in Bubble. I’d recommend setting up a cron job to ping an API endpoint on your app and then have that run a workflow everytime the endpoint is hit. We’ve used easycron.com for this in the past.

Let us know how it goes.

2 Likes

Ooohh I’ve found out what I’m trying this weekend.

Is there no limit to this like there is with scheduled recurring workflow? What are the negative implications for my app?

@eurogar doesn’t give an example of what he/she is doing but what could be a practical example of where this might be useful?

I’ve used https://www.setcronjob.com/ in the past so I’ll try that one out…

1 Like

+1 for easycron.com. It works well with our projects.

1 Like

Thank you all for the tips and advices, guys! Really appreciate it :slight_smile:

This topic was automatically closed after 70 days. New replies are no longer allowed.