| | 54 | Once implemented we will start one big pass through the cleaned up data to implement these space reductions. This will consist of |
| | 55 | * Modify query for pendingcleanupimfile to (optionally) list all components not just those in full state |
| | 56 | * set cleaned runs back to state goto_cleaned with a different label so we can distinguish between regular and second pass cleanup |
| | 57 | === Warp stage === |
| | 58 | - modify query to optionally list all components not just those in full state |
| | 59 | - delete sources (they are regenerated by update anyways) |
| | 60 | - delete skycell template files (they are regnerated by update) |
| | 61 | - delete psf file (it is regenerated on by update) |
| | 62 | - compress log files |
| 51 | | {{{ |
| 52 | | if (goto_purged) |
| 53 | | delete psf |
| 54 | | should we delete the background model? |
| 55 | | It is only useful if the corresponding warp is in state full. |
| 56 | | if (goto_scrubbed) |
| 57 | | delete all of the files we delete in goto_purged as well |
| 58 | | |
| 59 | | }}} |
| 60 | | |
| 61 | | CZW: The background model should be retained unless we are confident we never wish to use this run (or it's warp/stack descendants) again. The code I'm working on now allows for the generation of stack-level background models for runs with cleaned chips and warps, so the above statement that it's only useful if the warp is full is no longer accurate. |
| 62 | | === Warp stage === |
| 63 | | |
| 64 | | {{{ |
| 65 | | if (goto_purged) |
| 66 | | delete cmf |
| 67 | | delete psf |
| 68 | | delete skycell.template |
| 69 | | |
| 70 | | if (goto_scrubbed) |
| 71 | | delete the files deleted in goto_purged as well as the normal cleanup files |
| 72 | | |
| 73 | | }}} |
| | 64 | === Camera Stage === |
| | 65 | We found about 15000 censored camera runs that were not restored. I missed some labels apparently. These are running now. This will |
| | 66 | remove 2 copies of the smf for each run. |