Auto Sync Setup for Frontend
Is your feature request related to a problem? Please describe. Currently, the frontend needs to manually trigger “Sync” multiple times when developing or testing changes. This becomes repetitive, especially when running the Go backend inside a Docker container. Since the backend already manages synchronization logic, it would be ideal if syncing could happen automatically based on a configuration or environment variable.
Describe the solution you'd like
Add support for an auto-sync mode, configurable via an environment variable (e.g. CCSYNC_AUTO_SYNC=true).
- When enabled, the backend periodically triggers sync jobs automatically (using a lightweight cron job or ticker).
- The sync interval could be configurable (e.g.
CCSYNC_SYNC_INTERVAL=5m). - This way, developers don’t need to manually click the “Sync” button repeatedly when running locally or in CI environments.
Describe alternatives you've considered
- A manual sync loop using frontend timers — but this adds unnecessary complexity and frontend overhead.
- Using an external cron container or script to hit the sync endpoint — but it’s less integrated and not as portable as an internal toggle.
Additional context This feature would improve developer experience, especially when running the backend in a containerized setup (e.g., Linux with Docker), where manual interaction is not practical. It could also help with automated testing and continuous syncing workflows.
hey @its-me-abhishek , can you assign this to me ?
Can also consider setting it up as a cron job in Ubuntu itself for the Docker container, running it as a systemctl process. Shall be easy to do, and provide an interface to do the same via frontend
Can also consider setting it up as a cron job in Ubuntu itself for the Docker container, running it as a systemctl process. Shall be easy to do, and provide an interface to do the same via frontend
sure, will look into it