after_session_base

This module runs at the end of each session when the animal is back home.

  1. It backs up the session data to a remote server using rsync.

  2. You can override this class in your project code to implement custom behavior.

Classes

AfterSessionBase()

Base class for operations performed after a session ends.

class AfterSessionBase[source]

Bases: object

Base class for operations performed after a session ends.

This class handles data synchronization (backup) to either a hard drive or a remote server based on current settings.

run() None[source]

Executes the post-session logic, primarily data synchronization.

Checks the SYNC_TYPE setting and initiates either a local or remote rsync.