michael_cooper
03/04/2021, 9:15 PM/.meltano/run
are being cached and not updated if there was a change within the tap. Is this intended by default?douwe_maan
03/04/2021, 9:18 PMmeltano select
or meltano elt
?michael_cooper
03/04/2021, 9:19 PM# install all taps
1. meltano install
2. meltano invoke tap-custom-tap
# update tap-custom-tap repo with some new schema properties
3. meltano install tap-custom-tap
4. meltano invoke tap-custom-tap
When I do that, I get an error because the schema/properties have been updated, but it's trying to run on a cached version of that tap's properties.douwe_maan
03/04/2021, 9:24 PMmeltano --log-level=debug invoke tap-custom-tap
, do you see "Using cached catalog file" printed? If you delete .meltano/run/tap-custom-tap/tap.properties.cache_key
, does a new catalog get generated?douwe_maan
03/04/2021, 9:25 PM-e
), but doesn't invalidate the cache when the plugin is updatedmichael_cooper
03/04/2021, 9:26 PM.meltano/run/tap-custom-tap/tap.properties.cache_key
michael_cooper
03/04/2021, 9:27 PM-e
though. It was via an external repo.douwe_maan
03/04/2021, 9:30 PMmeltano elt
(https://gitlab.com/meltano/meltano/-/issues/2460), so you shouldn't see the issue when you're actually running pipelines 🙂 We should improve the cache invalidation logic though. Can you please file an issue?michael_cooper
03/04/2021, 9:30 PM[2021-03-04 21:28:53,618] [1|MainThread|root] [DEBUG] Creating engine <meltano.core.project.Project object at 0x7f510102d160>@sqlite:////projects/.meltano/meltano.db
[2021-03-04 21:28:54,642] [1|MainThread|root] [DEBUG] Created configuration at /projects/.meltano/run/tap-s3-toast/tap.config.json
[2021-03-04 21:28:54,643] [1|MainThread|root] [DEBUG] Could not find tap.properties.json in /projects/.meltano/extractors/tap-s3-toast/tap.properties.json, skipping.
[2021-03-04 21:28:54,643] [1|MainThread|root] [DEBUG] Could not find tap.properties.cache_key in /projects/.meltano/extractors/tap-s3-toast/tap.properties.cache_key, skipping.
[2021-03-04 21:28:54,643] [1|MainThread|root] [DEBUG] Could not find state.json in /projects/.meltano/extractors/tap-s3-toast/state.json, skipping.
[2021-03-04 21:28:54,643] [1|MainThread|meltano.core.plugin.singer.tap] [DEBUG] Using cached catalog file
michael_cooper
03/04/2021, 9:31 PMinvoke
type reason?douwe_maan
03/04/2021, 9:32 PMmeltano invoke
and meltano select
, because Meltano will look in .meltano/run/<tap name>
for files in both of those cases, while meltano elt
will look in .meltano/run/elt/<UUID>
, which is new on every run, so there's never any cache to be picked updouwe_maan
03/04/2021, 9:32 PMmeltano elt
as well, but (fortunately) that hasn't been implemented yet, so we can fix this cache invalidation bug before we get to thatmichael_cooper
03/04/2021, 9:32 PMdouwe_maan
03/04/2021, 9:32 PMmeltano invoke/select
and actually invalidate on meltano install
michael_cooper
03/04/2021, 9:39 PMbug
, feature_proposal
, or some other template for the issue?douwe_maan
03/04/2021, 9:39 PMdouwe_maan
03/04/2021, 9:40 PMdouwe_maan
03/04/2021, 10:08 PMdouwe_maan
03/04/2021, 10:13 PM