def lambda_executor(config=None, job_max_runtime=280): if config is None: config = wrenconfig.default() AWS_REGION = config['account']['aws_region'] FUNCTION_NAME = config['lambda']['function_name'] invoker = invokers.LambdaInvoker(AWS_REGION, FUNCTION_NAME) return Executor(invoker, config, job_max_runtime)
def lambda_executor(config=None): if config is None: config = wrenconfig.default() AWS_REGION = config['account']['aws_region'] FUNCTION_NAME = config['lambda']['function_name'] S3_BUCKET = config['s3']['bucket'] S3_PREFIX = config['s3']['pywren_prefix'] invoker = invokers.LambdaInvoker(AWS_REGION, FUNCTION_NAME) return Executor(AWS_REGION, S3_BUCKET, S3_PREFIX, invoker, config)
def lambda_executor(config=None, job_max_runtime=280): if config is None: config = wrenconfig.default() AWS_REGION = config['account']['aws_region'] FUNCTION_NAME = config['lambda']['function_name'] S3_BUCKET = config['s3']['bucket'] S3_PREFIX = config['s3']['pywren_prefix'] RUNTIME_S3_BUCKET = config['runtime']['s3_bucket'] RUNTIME_S3_KEY = config['runtime']['s3_key'] invoker = invokers.LambdaInvoker(AWS_REGION, FUNCTION_NAME) return Executor(AWS_REGION, S3_BUCKET, S3_PREFIX, invoker, RUNTIME_S3_BUCKET, RUNTIME_S3_KEY, job_max_runtime)