elf_rust
elf_rust is a Rust library designed to work in conjunction with cloud_task_executor to provide a simple task executor for various cloud platforms, such as AWS Lambda and Alibaba Cloud Function Compute. The library allows users to define and execute tasks (scripts) based on the payload provided, making it suitable for serverless computing environments.
link to cloud_task_executor
Features
- Defining tasks with specific names that can be scheduled and executed based on the provided payload.
- Registering multiple tasks and executing them based on the task names specified in the payload.
- Logging task execution details, including success, failure, and execution time.
- Automatically initializing and configuring the runtime environment.
Usage
To use elf_rust, add the following dependency to your Cargo.toml
file:
[]
= "0.1.0"
Below is an example of how to use elf_rust to define and execute tasks:
use ;
use Value;
use sleep;
use *;
async
async
async
License
This project is licensed under the MIT License - see the LICENSE file for details.