refactor: リテラルを定数化。環境変数ファイルにフォーマット適用
This commit is contained in:
parent
31a8f79fca
commit
af6d995e6d
@ -23,13 +23,16 @@ class TrnResultDataBioLotEnvironment(JskultBatchEnvironment):
|
|||||||
Raises:
|
Raises:
|
||||||
EnvironmentVariableNotSetException: 環境変数の設定ミス
|
EnvironmentVariableNotSetException: 環境変数の設定ミス
|
||||||
"""
|
"""
|
||||||
super()._assert_variable_not_empty(self.JSKULT_BACKUP_BUCKET, 'JSKULT_BACKUP_BUCKET')
|
super()._assert_variable_not_empty(
|
||||||
super()._assert_variable_not_empty(self.BATCH_MANAGE_DYNAMODB_TABLE_NAME, 'BATCH_MANAGE_DYNAMODB_TABLE_NAME')
|
self.JSKULT_BACKUP_BUCKET, 'JSKULT_BACKUP_BUCKET')
|
||||||
|
super()._assert_variable_not_empty(
|
||||||
|
self.BATCH_MANAGE_DYNAMODB_TABLE_NAME, 'BATCH_MANAGE_DYNAMODB_TABLE_NAME')
|
||||||
super()._assert_variable_not_empty(self.BATCH_EXECUTION_ID, 'BATCH_EXECUTION_ID')
|
super()._assert_variable_not_empty(self.BATCH_EXECUTION_ID, 'BATCH_EXECUTION_ID')
|
||||||
super()._assert_variable_is_int(self.MAX_RUN_COUNT, 'MAX_RUN_COUNT')
|
super()._assert_variable_is_int(self.MAX_RUN_COUNT, 'MAX_RUN_COUNT')
|
||||||
# MAX_RUN_COUNTは数値として扱うため、検査後に変換
|
# MAX_RUN_COUNTは数値として扱うため、検査後に変換
|
||||||
self.MAX_RUN_COUNT = int(self.MAX_RUN_COUNT)
|
self.MAX_RUN_COUNT = int(self.MAX_RUN_COUNT)
|
||||||
super()._assert_variable_not_empty(self.PROCESS_NAME, 'PROCESS_NAME')
|
super()._assert_variable_not_empty(self.PROCESS_NAME, 'PROCESS_NAME')
|
||||||
super()._assert_variable_not_empty(self.TRANSFER_RESULT_FOLDER, 'TRANSFER_RESULT_FOLDER')
|
super()._assert_variable_not_empty(
|
||||||
super()._assert_variable_not_empty(self.TRANSFER_RESULT_FILE_NAME, 'TRANSFER_RESULT_FILE_NAME')
|
self.TRANSFER_RESULT_FOLDER, 'TRANSFER_RESULT_FOLDER')
|
||||||
|
super()._assert_variable_not_empty(
|
||||||
|
self.TRANSFER_RESULT_FILE_NAME, 'TRANSFER_RESULT_FILE_NAME')
|
||||||
|
|||||||
@ -66,8 +66,7 @@ class TrnResultDataBioLot(JskultBatchEntrypoint):
|
|||||||
|
|
||||||
jskult_batch_status_manager = JskultBatchStatusManager(
|
jskult_batch_status_manager = JskultBatchStatusManager(
|
||||||
self.environment.PROCESS_NAME,
|
self.environment.PROCESS_NAME,
|
||||||
# TODO チケットNEWDWH2021-1847の実装で作成した定数に置き換え
|
constants.PROCESS_TYPE_POST_PROCESS,
|
||||||
'post_process',
|
|
||||||
self.environment.MAX_RUN_COUNT,
|
self.environment.MAX_RUN_COUNT,
|
||||||
receive_file_count
|
receive_file_count
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user