You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/initialization/README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,17 @@
18
18
- Priming the Senzing engine before use loads resource intensive assets upfront.
19
19
- Without priming the first SDK call to the engine will appear slower than usual as it causes these assets to be loaded.
20
20
-**factory_destroy.py**
21
-
- Calls `destroy` on the abstract factory destroying the abstract factory and any Senzing objects it has created.
21
+
- Calls `destroy()` on the abstract factory destroying the abstract factory and any Senzing objects it has created.
22
22
- The abstract factory must exist for the life of Senzing objects it has created.
23
-
- If the abstract factory goes out of scope `destroy` is automatically called
23
+
- If the abstract factory goes out of scope `destroy()` is automatically called
24
24
-**purge_repository.py**
25
25
-**WARNING** This script will remove all data from a Senzing repository, use with caution! **WARNING**.
26
26
- It will prompt first, still use with caution!.
27
+
**signal_handler.py**
28
+
- Catches signal.SIGINT (ctrl + c) and exits cleanly
29
+
- Exiting cleanly on a signal ensures resource cleanup for the abstract factory is automatically called
30
+
- If sz_abstract_factory goes out of scope 'destroy()` is automatically called, if signals are not caught and handled automatic resource cleanup does not happen
31
+
-`destroy()` could also be called directly on the abstract factory by the signal handler
27
32
-**sz_engine_config_ini_to_json.py**
28
33
- The snippets herein utilize the `SENZING_ENGINE_CONFIGURATION_JSON` environment variable for Senzing abstract factory creation.
29
34
- If you are familiar with working with a Senzing project you may be aware the same configuration data is held in the sz_engine_config.ini file.
0 commit comments