| | 40 | = {{{NodeRelated/update_table_undefined.py}}} Details = |
| | 41 | * The script depends on {{{ipp.lifetime_templates}}} (hence the PYTHONPATH line in the crontab script) |
| | 42 | * This script can be run independently (and in parallel of the other scripts: {{{-h}}} for help) |
| | 43 | * The objective of this script is to classify "undefined" files in one of the categories defined in the {{{ipp.lifetime_templates}}} (see related paragraph TODO: Add link) |
| | 44 | * Its parameters are: the maximum number of undefined files to be classified (default: 10), the disk partition (default: 0), and the directory. |
| | 45 | * Whatever the value of the maximum number of undefined files to be classified, the files are classified by batches of 2500: we don't want to overwhelm the local mysql database / host. Therefore if you specify a maximum of 11000 files, there will be 5 iterations. |
| | 46 | * In each batch, 2500 undefined entries, that is, entries having an {{{undefined}}} status from the neb_<disk>_<directory name> table are selected, classified according to the rules defined in {{{ipp.lifetime_templates}}}, and then updated. |
| | 47 | |
| | 48 | Note: The classifier defined {{{ipp.lifetime_templates}}} is dynamically imported: this means that there is no need to stop-and-restart the {{{NodeRelated/refresh_table.py}}} script to modify its behavior. It is the only reason why the {{{NodeRelated/update_table_undefined.py}}} is called as a script by {{{NodeRelated/refresh_table.py}}} and not as a class/function. |
| | 49 | |