Skip to content

conversation_metrics_helper.py defaults to all time which causes too much data to be pulled and gets genesys unhappy #46

Description

@eastlandm

The following bit of code is the problem.

        checkpointer_key_name = normalized_input_name
        current_checkpoint = (
            kvstore_checkpointer.get(checkpointer_key_name)
            or datetime(1970, 1, 1).timestamp()
        )

on first run, if there is no checkpoint, the api is polled for all data since 1970. This creates problems in production environments as too much data causes genesys to suspend the oauth client so no more conversation metrics API calls can be made till the oauth client is re-enabled

the workaround is to manually create the kvstore checkpoint with an epoch timestamp record before creating the input. not ideal, but ok if you know about it beforehand

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions