While a lambda is still processing (archive unpacking etc), the lambda state should be set to "Pending" (currently "Active") and invocations to that lambda should fail (currently, it can end up in a inconsistent state in this case, like lambdas being executed without layers).

Lambda state should reflect the current internal state, and invocations should fail if not active.
timestamp = timestamp or datetime.utcnow()
    return isoformat_milliseconds(timestamp) + "+0000"
def format_timestamp_for_event_source_mapping():
    
    return datetime.utcnow().timestamp()
def add_event_source(data):
    region = LambdaRegion.get()
    mapping = build_mapping_obj(data)
    region.event_source_mappings.append(mapping)
    EventSourceListener.start_listeners(mapping)
    return mapping
def update_event_source(uuid_value, data):