コード例 #1
0
ファイル: test_jobwatch.py プロジェクト: sot/jobwatch
def test_dbwatch():
    Watch = jobwatch.SkaDbWatch
    jws = [Watch('DB acq_stats_data', timekey='tstart',
                 table='acq_stats_data', maxage=4),
           Watch('DB trak_stats_data', timekey='kalman_tstart',
                 table='trak_stats_data', maxage=4),
           Watch('DB obspar', timekey='tstart', table='obspar', maxage=4),
           Watch('DB aiprops', timekey='tstart', table='aiprops', maxage=4),
           ]
    jobwatch.make_html_summary(jws, outdir='outdb')
コード例 #2
0
ファイル: test_jobwatch.py プロジェクト: sot/jobwatch
def test_make_html_summary():
    perlidl_errs = ('Use of uninitialized value',
                    '(?<!Program caused arithmetic )error',
                    'warn',
                    'fatal')

    jws = [jobwatch.JobWatch('errors', 'logs/errors.log',
                             errors=perlidl_errs,
                             requires=('MISSING REQUIRED OUTPUT',
                                       'MORE missing output',
                                       'APPending')),
           jobwatch.SkaJobWatch(task='eng_archive'),
           jobwatch.SkaJobWatch(task='astromon')]
    jobwatch.make_html_summary(jws)
コード例 #3
0
ファイル: test_jobwatch.py プロジェクト: sot/jobwatch
def test_filewatch():
    jobfile = ('/proj/sot/ska/www/ASPECT/obc_rate_noise/'
               'trending/pitch_hist_recent.png')
    Watch = jobwatch.FileWatch
    jws = [Watch(task='obc_rate_noise', filename=jobfile, maxage=50)]
    jobwatch.make_html_summary(jws, outdir='outfile')