Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys authored Oct 17, 2023
1 parent 9584287 commit c4b889c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/en/plugin/middleware.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Middleware

```python
uid = f"{platform}:{user_id}"
```

## Usage

```python
Expand Down Expand Up @@ -50,4 +54,14 @@ try:
SCHEDULER.start()
except Exception as e:
pass
```



## ENV

```python
_env_dict = await EnvManager.from_uid(uid=_task.receiver.uid).get_env_list(name_list=_tool_obj.env_required)
assert isinstance(_env_dict, dict), "env_dict must be dict"

```
14 changes: 14 additions & 0 deletions docs/plugin/middleware.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 中间件

```python
uid = f"{platform}:{user_id}"
```


## 计费组件

```python
Expand Down Expand Up @@ -50,4 +55,13 @@ try:
SCHEDULER.start()
except Exception as e:
pass
```


## ENV

```python
_env_dict = await EnvManager.from_uid(uid=_task.receiver.uid).get_env_list(name_list=_tool_obj.env_required)
assert isinstance(_env_dict, dict), "env_dict must be dict"

```

0 comments on commit c4b889c

Please sign in to comment.