> For the complete documentation index, see [llms.txt](https://smallso.gitbook.io/tencent-cloud-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/class-and-method/function-schedule.md).

# FunctionSchedule 类

## 简要

代表无服务器云函数定时调用任务的类。

{% hint style="danger" %}
请注意，您不应该直接构造该类的类实例，而是应该使用 Client 类的类实例方法 schedule\_invoke 获得一个该类的实例，否则行为可能是未定义的。
{% endhint %}

```python
class FunctionSchedule
```

## 属性

该类包含的可公开访问属性和属性描述如下：

| 属性             | 类型        | 描述                                                                                                                                                                                    |
| -------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| is\_successful | bool      | 该属性指示无服务器云函数是否成功调用、运行。                                                                                                                                                                |
| exception      | Exception | 该属性指示无服务器云函数调用过程中所引发（如果有）的异常类型。                                                                                                                                                       |
| result         | dict      | 该属性包含无服务器云函数的运行结果，其数据类型为 [FunctionResult](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/data-types/function-result)。                                  |
| return\_value  | ...       | 该属性包含无服务器云函数的实际返回值，请参阅类 Client 的实例方法 [easy\_invoke](https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/class-and-method/client/easy-invoke-method) 的返回值说明。 |

## 适用于

#### Tencent Cloud SDK for Python

产品软件包：tencent-cloud-sdk-serverless-functions >= 0.1.1
