Workflow that runs indefinitely

Hi there, I have a workflow that checks system state that I want to run indefinitely. I know that Temporal has event history limits that prevents you from just kicking off a workflow and letting it run forever - I was wondering what the best mechanism to doing this would be? Could I run this as a daily cron and just set the workflow run timeout to be 24 hours, so that the run would timeout, and then a new workflow would spawn based on the cron schedule? Any advice would be appreciated, thanks!

What is the rate at which you check (poll) this system state?

Around every 30s or maybe even more frequently, we’ll want to make sure the system is healthy

Got it, you could look at polling samples (java, go, python) to get an idea.

Your rate would fall under the “frequent polling” suggested impl in those samples.