Edit: solved - in thread. nvm Me again as well :s...
# singer-tap-development
i
Edit: solved - in thread. nvm Me again as well 🙂 So I'm trying to implement states in my tap like so: https://github.com/ilkkapeltola/tap-sirene/blob/main/tap_sirene/client.py#L99 But that clearly isn't working. What have I understood wrong? When I run the elt with a state-id, it does produce the state in my database (running postgres), but when I re-run the elt, this bit doesn't get the state and the elt starts all over. I'm doing this wrong, but I'm unsure what the right approach is to fix it.
Not sure if it's relevant, but for example when running in debug mode, I get this:
Copy code
2022-06-22T13:52:04.027481Z [debug    ] Could not find state.json in /project/.meltano/extractors/tap-sirene/state.json, skipping.
Maybe that's always there? Anyway, I'm expecting to see something like
Copy code
Found state from ...
Nothing like that is there.
Oohhh wait. So I've installed the plugin as a custom one, I hadn't added
Copy code
capabilities:
  - state
in the configuration. That's what I was missing it would seem.
So... most of the plugins don't require me to explicitly state this, they just work with state. How do I accomplish that?
e
Non-custom plugins you've worked come from MeltanoHub. So, they do declare those capabilities but it's conveniently hidden from you in their lockfiles. You can look in the
plugins/
directory for those.
i
Awesome, that helps