Skip to content

Plugins with same function names interfere with each other #27

@jnativio2

Description

@jnativio2

I have 2 standard plugins running on the InfluxDB 3 processing engine: downsampler and threshold_deadman_checks. They are triggered every 5 min. They have some functions with same name, like parse_time_interval(). When executing, I get occasionally these errors in the logs:

On the downsampler plugin:
2025-08-26 14-35-00 [ERROR] parse_time_interval() takes 2 positional arguments but 4 were given

On the threshold_deadman_checks plugin:
2025-08-26 14-40-00 [ERROR] [7d0fe2cd-31c0-4f39-ad01-832e1e636b04] Error: parse_time_interval() missing 2 required positional arguments: 'key' and 'task_id'

And indeed, the functions have different signatures on each plugin:
downsampler: parse_time_interval(influxdb3_local, args, "interval", task_id)
threshold_deadman_checks: parse_time_interval(args: dict, task_id: str) -> tuple[int, str]:

So, one plugin is calling the other plugin's function. This issue was circumvented by renaming the functions in one of the plugins.

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