# Functions
IsRunning returns true if the sync is running in background.
LastSync returns the time when the last sync started.
QueueRun is a thread-safe version of Run that ensures that only one sync can happen at a time.
Run ensures the system is in the correct state You should use QueueRun in most cases.
SyncError returns the error (if any) during the last sync.
# Variables
Function that restarts the API server.
Boolean notifying if the first sync has completed.