sample script to load templates#85
sample script to load templates#85abilpraju-aot wants to merge 1 commit intoAOT-Technologies:mainfrom
Conversation
|
| template_key, | ||
| ) | ||
|
|
||
| logger.info("Sample template loading complete: %d loaded, %d total ZIPs.", loaded, len(zip_files)) |
There was a problem hiding this comment.
BadZipFile and IntegrityError are currently handled, but failures in read_bytes(), store_file(), tenant creation, and other non-integrity database operations can still cause the startup to abort. Can we ignore all errors from this code so that it doesn’t break startup?
auslin-aot
left a comment
There was a problem hiding this comment.
Please ensure that sample templates with JSON files and DMN are loaded correctly, and verify that these templates can be viewed and used in the process model without any issues.
auslin-aot
left a comment
There was a problem hiding this comment.
Performance concern: when the flag is enabled, startup performs synchronous disk I/O, ZIP extraction, and database writes during app boot. Can you check if this can be done asynchronously?
There was a problem hiding this comment.
Shouldn't there be more useful ready-to-use templates, instead of just one basic test model?




JIRA Ticket
https://aottech.atlassian.net/browse/M8F-137
Description
Added a new folder sample_templates to load sample templates at the startup
Type
Changes
Testing
Related Issues
Closes #