Skip to content

Passing a dictionary to the replay param? #16

Closed
@joshua-nicholson

Description

@joshua-nicholson

The docs say you can use a dictionary to pass the replay param of the client.

replay (Union[ReplayOption, ReplayMarkerStorage, Mutablemapping[str, ReplayMarker]]) – A ReplayOption or an object capable of storing replay ids if you want to take advantage of Salesforce’s replay extension. You can use one of the ReplayOptions, or an object that supports the MutableMapping protocol like dict, defaultdict, Shelf etc. or a custom ReplayMarkerStorage implementation.

I'm not exactly clear on what this dictionary needs to contain though. I see it needs a string and a ReplayMarker so I tried this

replay={"replay": ReplayMarker("2021-01-27T18:33:19.087Z", 272625)}

But I don't seem to pull in any previous events. These are hardcoded for now for testing purposes, I'll dynamically retrieve them from the last successful event once I get this working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions