In some cases, a stream needs to be restarted periodically — for example, to refresh the connection, clear memory, or for other technical reasons. Our solution now includes a scheduling feature for automatic actions — similar to the well-known cron utility in Linux.
How It Works
In the settings of each stream, you can define one or more scheduled actions to be executed at a specified time. To do this:
Open the settings of the desired stream.
Click the Add cron action button.
In the newly appeared section, choose the type of action:
Restart — restart the stream process.
Stop — stop the stream.
Set the execution time using the crontab format.
The crontab format is a flexible scheduling system used in Linux. Example:
0 4 * * *
This means the action will run every day at 4:00 AM.
For convenience, we recommend using the online tool: https://crontab.guru, which helps you visually create the desired time pattern.
Features
You can add multiple cron actions for a single stream.
For example, one for daily restarts and another to stop the stream on specific days.
A Next action column has been added to the stream table, showing the time remaining until the next scheduled action.
This helps quickly see when the next state change will occur.
Example Use Case
Let’s say you have a 24/7 livestream running. To prevent error buildup and crashes, you can schedule a daily restart at 03:00 AM:
Action type:Restart
Time:
0 3 * * *
Now, the system will automatically restart the stream every night without any manual intervention.