Closed
Description
Today, a Lua script has a global section, which gets executed right at the beginning, and a few callback functions for nodes, ways, and relations. However, there's no way for the script to figure out when the Flex backend enters or exits a given stage.
This could be useful to do some initialization steps upon entry of a stage, or trigger the creation of additional DB indexes when exiting stage 3 (see #1212).
As an alternative, providing a global "setup" and "teardown" function callback, similar to the way unit tests work, would be a good starting point.
Metadata
Metadata
Assignees
Labels
No labels