luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
394 stars 22 forks source link

[Feature Request] Exit upon sync finish to allow cron-like behavior #189

Closed 0dragosh closed 1 month ago

0dragosh commented 1 month ago

I’d like to run the app as a cronjob, but it currently only supports sleeping for X seconds so a cron never quits.

It would be great if the app were to exit successfully upon sync finish so it could be run on a from schedule.

A one-off run behavior if you will.

luigi311 commented 1 month ago

Set this env to true RUN_ONLY_ONCE = "False"

0dragosh commented 1 month ago

Awesome, thank you @luigi311!