Skip to content

Conversation

@rustprooflabs
Copy link
Owner

Details

Closes #343.

When there is not a prior import tracked in osm.pgosm_flex, there is no change to output/operation. When using --replication after the initial run, details of the prior import version will be displayed. Same version:

2023-11-22 15:00:09,524:INFO:pgosm-flex:import_mode:Prior import used PgOSM Flex: 0.10.2
2023-11-22 15:00:10,580:INFO:pgosm-flex:helpers:PgOSM Flex version:  0.10.2-822ddd3

Example when PgOSM Flex used now is newer than prior.

2023-11-22 15:07:24,999:INFO:pgosm-flex:import_mode:Prior import used PgOSM Flex: 0.10.1
2023-11-22 15:07:25,020:INFO:pgosm-flex:helpers:PgOSM Flex version:  0.10.2-822ddd3

If the version used for prior import was newer, informs the user and stops.

2023-11-22 15:00:43,324:ERROR:pgosm-flex:import_mode:PgOSM Flex version (0.10.2) is lower than latest import tracked in the pgosm_flex table (0.10.3). Use PgOSM Flex version 0.10.3 or newer
2023-11-22 15:00:43,324:ERROR:pgosm-flex:pgosm_flex:Not okay to run PgOSM Flex. Exiting
Not okay to run PgOSM Flex. Exiting

@rustprooflabs rustprooflabs added the enhancement New feature or request label Nov 22, 2023
@rustprooflabs rustprooflabs added this to the 0.10.3 milestone Nov 22, 2023
@rustprooflabs rustprooflabs merged commit 1cd1f98 into main Nov 22, 2023
@rustprooflabs rustprooflabs deleted the improve-version-checks branch November 22, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand checks on prior import to check versions

2 participants