sterling_paramore
09/01/2022, 12:39 AMsterling_paramore
09/01/2022, 12:39 AM{
"singer_state": {
"bookmarks": {
"wo_tags": {
"replication_key": "date_modified",
"replication_key_value": "2022-08-25T21:04:07Z"
}
}
}
}
But when there is a failure, I get a state that looks like:
{
"error": "Loader failed",
"singer_state": {
"bookmarks": {
"assembly_components": {
"progress_markers": {
"Note": "Progress is not resumable if interrupted.",
"replication_key": "date_modified",
"replication_key_value": "2022-06-09T17:41:53Z"
},
"replication_key_signpost": "2022-08-31T18:11:37.204708+00:00",
"starting_replication_value": "2000-01-01T00:00:01Z"
}
}
}
}
It looks like the stuff in progress_markers would have all the information about the state that would allow it to restart where it left off. Why isn’t that happening? FYI, this is from a tap that I developed using the Meltano SDK, so maybe I missed something?aaronsteers
09/01/2022, 12:57 AMaaronsteers
09/01/2022, 1:00 AMsterling_paramore
09/01/2022, 1:00 AMStream class. I didn’t set anything explicitly here. Would that be another @property method?sterling_paramore
09/01/2022, 1:00 AMis_sorted flagaaronsteers
09/01/2022, 1:41 AM@property syntax but you can also use the shorthand.
class SimpleSampleStream(Stream):
primary_keys = ["id"]
replication_key = "updated_at"
is_sorted = Truesterling_paramore
09/01/2022, 1:58 AMsterling_paramore
09/01/2022, 11:05 PMSTATE_MSQ_FREQUENCY , but it doesn’t look like state is getting recorded every 10,000 records. There’s nothing in the log, and if I check the state file manually with meltano get state, I just get an empty {} well after 10k records.maarten_van_gijssel
02/02/2023, 2:56 PMmaarten_van_gijssel
02/02/2023, 2:57 PMSTATE_MSQ_FREQUENCY to 1 will print a lot more STATE messages though it doesn't seem to matter, state will only contain the error upon failuresterling_paramore
02/02/2023, 4:41 PMmaarten_van_gijssel
02/03/2023, 10:22 AM