Merge branch 'cc-5709-airtime-analyzer' into saas
Conflicts: python_apps/airtime_analyzer/airtime_analyzer/status_reporter.py
This commit is contained in:
commit
864352c6a7
|
@ -237,7 +237,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
||||||
//as a foreign key to cc_music_dirs.
|
//as a foreign key to cc_music_dirs.
|
||||||
if (isset($requestData["full_path"])) {
|
if (isset($requestData["full_path"])) {
|
||||||
$fileSizeBytes = filesize($requestData["full_path"]);
|
$fileSizeBytes = filesize($requestData["full_path"]);
|
||||||
if ($fileSizeBytes === false)
|
if (!isset($fileSizeBytes) || $fileSizeBytes === false)
|
||||||
{
|
{
|
||||||
$file->setDbImportStatus(self::IMPORT_STATUS_FAILED)->save();
|
$file->setDbImportStatus(self::IMPORT_STATUS_FAILED)->save();
|
||||||
$this->fileNotFoundResponse();
|
$this->fileNotFoundResponse();
|
||||||
|
|
|
@ -85,6 +85,7 @@ def process_http_requests(ipc_queue, http_retry_queue_path):
|
||||||
# while the web server is down or unreachable.
|
# while the web server is down or unreachable.
|
||||||
with open(http_retry_queue_path, 'wb') as pickle_file:
|
with open(http_retry_queue_path, 'wb') as pickle_file:
|
||||||
pickle.dump(retry_queue, pickle_file)
|
pickle.dump(retry_queue, pickle_file)
|
||||||
|
return
|
||||||
except Exception as e: # Terrible top-level exception handler to prevent the thread from dying, just in case.
|
except Exception as e: # Terrible top-level exception handler to prevent the thread from dying, just in case.
|
||||||
if shutdown:
|
if shutdown:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue