| | 1 | = Fixing a corrupted destreaked file = |
| | 2 | When an output of the destreak stage is corrupted it takes a few steps to repair. |
| | 3 | Example: diffSkyfile 131461 skycell.1.39 caused faults when building the distribution bundle because one of the fits files was corrupted. |
| | 4 | |
| | 5 | To fix this the original uncensored files need to be restored and streakremove run again. Here are the required steps. |
| | 6 | |
| | 7 | 1. Turn off dist.revert |
| | 8 | 2. Set diffRun.magicked = 0, diffSkyfile.magicked = 0 where diff_id = 131461 and skycell_id = 'skycell.1.39' |
| | 9 | 3. Find the magicDSRun associated with diff_id 131461: magic_ds_id=516369. |
| | 10 | 4. Set magicDSFile.fault = 2, magicDSRun.state = 'new' where magic_ds_id = 516369 and component = 'skycell.1.39' |
| | 11 | 5. Wait for destreak revert to restore the original files for this component and for the destreak run to process them again. |
| | 12 | 6. turn dist.revert back on |
| | 13 | |
| | 14 | Pau. |
| | 15 | |
| | 16 | This needs to be scripted. Actually most of this can be accomplished with database operations it should probably go into magicdstool. |
| | 17 | |