Beispiel #1
0
def execute_delete_report_handler(event, context):
    task_id = eventhelper.get_task_id(event)
    message_id = eventhelper.get_message_id(event)
    receipt_handle = eventhelper.get_receipt_handle(event)
    common_utils.begin_logger(task_id, __name__, inspect.currentframe())

    # batch delete report
    result = reportsBatch_logic.execute_delete_report(task_id)
    if result is True:
        # 正常終了処理
        organizationTask_logic.processing_finish(task_id, message_id,
                                                 receipt_handle)
    else:
        organizationTask_logic.processing_error(task_id, message_id)
Beispiel #2
0
def execute_confirm_awscoop_handler(event, context):
    task_id = eventhelper.get_task_id(event)
    message_id = eventhelper.get_message_id(event)
    receipt_handle = eventhelper.get_receipt_handle(event)

    common_utils.begin_logger(task_id, __name__, inspect.currentframe())

    # batch confirm awscoop
    try:
        awscoopsBatch_logic.execute_confirm_awscoop(task_id)
        organizationTask_logic.processing_finish(task_id, message_id,
                                                 receipt_handle)
    except PmError as e:
        organizationTask_logic.processing_error(task_id, message_id)
Beispiel #3
0
def execute_delete_organization_user_handler(event, context):
    task_id = eventhelper.get_task_id(event)
    message_id = eventhelper.get_message_id(event)
    receipt_handle = eventhelper.get_receipt_handle(event)

    common_utils.begin_logger(task_id, __name__, inspect.currentframe())

    # ユーザー組織遅延削除バッチ
    try:
        usersBatch_logic.execute_delete_organization_user(task_id)
        # 正常終了処理
        organizationTask_logic.processing_finish(task_id, message_id,
                                                 receipt_handle)
    except PmError:
        # エラー終了処理
        organizationTask_logic.processing_error(task_id, message_id)