Skip to content

Collectors need to be in particular order #80

Description

@tukusejssirs

I use ladder99/fanuc-driver:linux64-886a5a3 Docker image.

When I define collectors as follows (I sort the collectors alphabetically):

  collector-data: &collector-data
    l99.driver.fanuc.strategies.FanucMultiStrategy, fanuc:
      - l99.driver.fanuc.collectors.Alarms, fanuc
      - l99.driver.fanuc.collectors.AxisData, fanuc
      - l99.driver.fanuc.collectors.GCodeData, fanuc
      - l99.driver.fanuc.collectors.MachineInfo, fanuc
      - l99.driver.fanuc.collectors.Messages, fanuc
      - l99.driver.fanuc.collectors.ProductionData, fanuc
      - l99.driver.fanuc.collectors.SpindleData, fanuc
      - l99.driver.fanuc.collectors.StateData, fanuc
      - l99.driver.fanuc.collectors.ToolData, fanuc

it sometimes (rarely) works, sometimes it does not work.

However, when I move MachineInfo to the top (as the first collector, before Alarms), all works as expected.

I’d assume that the order in which the collectors are defined, does not matter, i.e. fanuc-driver would solve the collector dependencies on each other.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions