Skip to content

Move all synchronisation functionalities into an extensions module, so to be optional #583

@Mec-iS

Description

@Mec-iS

I'm submitting a

  • feature request.

Current Behaviour:

Socket functionalities automatically run when hydrus is started so it is ready for connections from the agent. Socket is readyed and all the helpers implement a synchronisation call on the socket to communicate with an agent.

Expected Behaviour:

  • hydrus should be started as "stand-alone" by default, support for the sync mechanism should be explicitly set to be available.
  • Optimally synchornisation should be packaged in an external library to be installed as pip install hydrus-agent-sync.
  • To achieve this decoupling, we should have a config variable to be set USE_AGENT_SYNC=false/true if hydrus-agent-sync is installed
  • also all the calls to socketio in the handlers should be factorised out in hydrus-agent-sync and called only if the synchronisation is on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions