Skip to content

Incorrect logging in single sensor mode #429

@akshat-rubrik

Description

@akshat-rubrik

The logging is kinda misleading and incorrect. I started jira sensor in a single sensor mode, and this is correctly reflected:

2025-03-12 20:34:28,486 INFO [-] Running in single sensor mode, using a single sensor partitioner...
2025-03-12 20:34:28,490 INFO [-] Setting up container to run 1 sensors.
2025-03-12 20:34:28,490 INFO [-] 	Sensors list - ['jira.JIRASensorForAPIv2'].
2025-03-12 20:34:28,490 INFO [-] (PID:1) SensorContainer started.
2025-03-12 20:34:28,492 INFO [-] Running sensor jira.JIRASensorForAPIv2
2025-03-12 20:34:28,550 INFO [-] Connected to amqp://admin:**@stackstorm-ha-1704186131-rabbitmq:5672//
2025-03-12 20:34:28,669 INFO [-] Sensor jira.JIRASensorForAPIv2 started
2025-03-12 20:34:30,153 INFO [-] Found config for sensor "JIRASensorForAPIv2"
2025-03-12 20:34:30,155 INFO [-] Watcher started
2025-03-12 20:34:30,155 INFO [-] Running sensor initialization code

but in the next poll it states:

2025-03-12 20:34:48,686 INFO [-] sensor jira.JIRASensorForAPIv2 is not assigned to this partition. Ignoring update.

Although the sensor runs correctly, the above log line is incorrect.
My config:

st2:
    packs:
        sensors:
            - name: jira-pack-sensor
              ref: jira.JIRASensorForAPIv2

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