# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/serverless-functions/class-and-method/function-schedule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
