rfcx / arbimon-jobs

Apache License 2.0
0 stars 0 forks source link

big playlist classification #18

Open lazychino opened 9 years ago

lazychino commented 9 years ago
Traceback (most recent call last):
  File "/var/lib/arbimon2/jobs/scripts/PatternMatching/classification.py", line 24, in <module>
    main(sys.argv)
  File "/var/lib/arbimon2/jobs/scripts/PatternMatching/classification.py", line 17, in main
    retVal = run_classification(jobId)
  File "/var/lib/arbimon2/jobs/lib/a2audio/classification_lib.py", line 350, in run_classification
    retValue = run_pattern_matching(db,jobId,model_uri,species,songtype,playlistId,log,config,ncpu)
  File "/var/lib/arbimon2/jobs/lib/a2audio/classification_lib.py", line 301, in run_pattern_matching
    cancelStatus(db,jobId,workingFolder)
  File "/var/lib/arbimon2/jobs/lib/a2pyutils/jobs_lib.py", line 13, in cancelStatus
    cursor.execute('select `cancel_requested` from`jobs`  where `job_id` = '+str(jobId))
  File "/var/lib/arbimon2/jobs/.env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/var/lib/arbimon2/jobs/.env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (2006, 'MySQL server has gone away')

it appears after long wait the mysql connection was gone and because of this the job broke

rafael-alvarez commented 9 years ago

commit 502348cc0a1249c8767cba1dfd83200b5c132b7a addresses this bug

currently a long job is running to test the fix