Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,580 for tasks (0.04 sec)

  1. src/cmd/trace/tasks.go

    func UserTasksHandlerFunc(t *parsedTrace) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		tasks := t.summary.Tasks
    
    		// Summarize groups of tasks with the same name.
    		summary := make(map[string]taskStats)
    		for _, task := range tasks {
    			stats, ok := summary[task.Name]
    			if !ok {
    				stats.Type = task.Name
    			}
    			stats.add(task)
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-17 18:48
    - 11.8K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/background-tasks.md

    在FastAPI中仍然可以单独使用 `BackgroundTask`,但您必须在代码中创建对象,并返回包含它的Starlette `Response`。
    
    更多细节查看 <a href="https://www.starlette.io/background/" class="external-link" target="_blank">Starlette's official docs for Background Tasks</a>.
    
    ## 告诫
    
    如果您需要执行繁重的后台计算,并且不一定需要由同一进程运行(例如,您不需要共享内存、变量等),那么使用其他更大的工具(如 <a href="https://docs.celeryq.dev" class="external-link" target="_blank">Celery</a>)可能更好。
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2023-10-17 05:59
    - 5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/background-tasks.md

    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    ## Add the background task
    
    Inside of your *path operation function*, pass your task function to the *background tasks* object with the method `.add_task()`:
    
    ```Python hl_lines="14"
    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    `.add_task()` receives as arguments:
    
    * A task function to be run in the background (`write_notification`).
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-05-18 23:43
    - 5.6K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/background-tasks.md

    ```Python hl_lines="6-9"
    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    ## バックグラウンドタスクの追加
    
    *path operations 関数* 内で、`.add_task()` メソッドを使用してタスク関数を *background tasks* オブジェクトに渡します。
    
    ```Python hl_lines="14"
    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    `.add_task()` は以下の引数を受け取ります:
    
    * バックグラウンドで実行されるタスク関数 (`write_notification`)。
    * タスク関数に順番に渡す必要のある引数の列 (`email`)。
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-01-15 16:12
    - 6.1K bytes
    - Viewed (0)
  5. docs/fr/docs/tutorial/background-tasks.md

    Sebastián Ramírez <******@****.***> 1652313976 -0500
    Registered: 2024-06-17 08:32
    - Last Modified: 2022-05-12 00:06
    - 5.7K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/background-tasks.md

    Nils Lindemann <******@****.***> 1705068929 +0100
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-01-12 14:15
    - 6.4K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/background-tasks.md

    ```Python hl_lines="6-9"
    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    ## Добавление фоновой задачи
    
    Внутри функции вызовите метод `.add_task()` у объекта *background tasks* и передайте ему функцию, которую хотите выполнить в фоне:
    
    ```Python hl_lines="14"
    {!../../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    `.add_task()` принимает следующие аргументы:
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-01-09 15:52
    - 8K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/background-tasks.md

    Izabela Guerreiro <******@****.***> 1652139872 -0300
    Registered: 2024-06-17 08:32
    - Last Modified: 2022-05-09 23:44
    - 5.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/img/writing-tasks-1.png

    writing-tasks-1.png...
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-03-23 23:21
    - 136.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/img/writing-tasks-3.png

    writing-tasks-3.png...
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-02-22 03:01
    - 212.2K bytes
    - Viewed (0)
Back to top