Issue with Moddif Plugin Modification: Communication Failure and InfluxDB Write

Forum Home Forums Development and Integration Issue with Moddif Plugin Modification: Communication Failure and InfluxDB Write

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17888
    Zeus
    Participant

    Hello,
    I’m currently working on modifying the moddif plugin and have encountered a significant issue during historical data backfilling.
    ️What I Changed
    I added the following override method to the plugin to perform actions after historical data is processed:
    /// <summary>
    /// Performs actions after receiving and processing new historical data.
    /// </summary>
    public override void OnHistoricalDataProcessed(int archiveMask, Slice slice)
    {
    // My custom logic here
    }
    ️The Problem
    When the driver starts backfilling data, this modification seems to trigger a communication breakdown between the COMM (Communication module) and the Server.
    Observed Symptoms
    Server Hang: The Server stops responding to the COMM module entirely.
    Database Latency: Writing data to InfluxDB becomes extremely slow, with write operations taking over 10 seconds to complete.
    My Question

    Has anyone experienced similar behavior when modifying OnHistoricalDataProcessed?
    I suspect my code inside this method might be blocking the main thread or causing a deadlock during the high-load backfill process. Could the Slice object be causing memory pressure, or is there a specific threading model I need to follow here?
    Any advice or pointers on how to debug this latency would be greatly appreciated.

    #17889
    manjey73
    Participant

    From my observations, Server Modules do not have isolation like drivers. A logical error leading to an exception will stop the Server. I tried using Thread and I ran into various problems. After that, I switched to Task, in case of an error in the task, it simply closes.
    The bots in the module are called about 10 times per second, it is necessary to take this into account.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.