fix: 転送処理のバグ修正。
This commit is contained in:
parent
a54d08aedd
commit
5c5b40a6be
@ -6,7 +6,6 @@ import shutil
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
|
|
||||||
from src.system_var import environment
|
from src.system_var import environment
|
||||||
|
|
||||||
|
|
||||||
@ -136,11 +135,11 @@ class UltmarcImportBucket(S3Bucket):
|
|||||||
_folder = environment.ULTMARC_IMPORT_FOLDER
|
_folder = environment.ULTMARC_IMPORT_FOLDER
|
||||||
|
|
||||||
def transfer_file_to_import(self, target_file: dict):
|
def transfer_file_to_import(self, target_file: dict):
|
||||||
backup_from_file_path = target_file.get("filename")
|
from_file_path = target_file.get("filename")
|
||||||
backup_to_filename = backup_from_file_path.replace(
|
to_filename = from_file_path.replace(
|
||||||
f"{self._folder}/", "")
|
f"{UltmarcBucket()._folder}/", "")
|
||||||
data_import_key = f'{self._folder}/{backup_to_filename}'
|
data_import_key = f'{self._folder}/{to_filename}'
|
||||||
self._s3_client.copy(self._bucket_name, backup_from_file_path,
|
self._s3_client.copy(self._bucket_name, from_file_path,
|
||||||
self._bucket_name, data_import_key)
|
self._bucket_name, data_import_key)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -113,7 +113,7 @@ class JskultHdkeTblManager:
|
|||||||
finally:
|
finally:
|
||||||
self._db.disconnect()
|
self._db.disconnect()
|
||||||
# 日次バッチ処理中の場合、後続の処理は行わない
|
# 日次バッチ処理中の場合、後続の処理は行わない
|
||||||
if batch_processing_flag == constants.BATCH_ACTF_BATCH_START:
|
if batch_processing_flag != constants.BATCH_ACTF_BATCH_START:
|
||||||
return False
|
return False
|
||||||
# dump取得が正常終了していない場合、後続の処理は行わない
|
# dump取得が正常終了していない場合、後続の処理は行わない
|
||||||
if dump_status_kbn != constants.DUMP_STATUS_KBN_COMPLETE:
|
if dump_status_kbn != constants.DUMP_STATUS_KBN_COMPLETE:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user