Package helpers :: Module RollbackIngest :: Class IngestRollbacker
[hide private]

Class IngestRollbacker

source code


Rolls-back a CU3 (only for now) ingest quickly by ignoring cascading deletes to detections.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_onRun(self)
Update the database.
source code
 
_onException(self)
Warn about any missing foreign key constraints.
source code

Inherited from wsatools.DbConnect.CuSession.CuSession: __del__, __init__, logBrokenFile, run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wsatools.DbConnect.CuSession.CuSession: logException

Class Variables [hide private]
  _autoCommit = True
Should this curation task auto-commit database transactions?
  comment = 'Rolling back CU3 ingest of cuEventID(s) %s'
Descriptive comment as to why curation task is being performed.
  _missingConstraints = False
Are constraints currently missing from db?
  cuEventIDs = '0'
Comma-separated list of cuEventIDs to roll back.
  ignoreWarnings = False
Ignore database schema discrepancies?

Inherited from wsatools.DbConnect.CuSession.CuSession: archive, cuEventID, cuNum, curator, eTypes, isDayStampedLog, onlyNonSurveys, onlySurveys, programme, programmeID, resultsFilePathName, shareFileID, sysc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_onRun(self)

source code 

Update the database.

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun

_onException(self)

source code 

Warn about any missing foreign key constraints.

Overrides: wsatools.DbConnect.CuSession.CuSession._onException