Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 629 for Worker (0.06 seconds)

  1. architecture/platforms.md

    It is made up of 3 architecture modules:
    
    - **core-runtime**: Provides the runtimes or "containers" in which code runs. These runtimes include the Gradle client, the daemon and the worker processes. This is the base module on which all other architecture modules depend.
    - **core-configuration**: Allows the build structure and work, such as tasks, to be specified. This includes the project model, the DSL and so on.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu May 02 06:42:46 GMT 2024
    - 5.4K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/deployment/server-workers.md

    特別是,在 **Kubernetes** 上執行時,你多半會選擇不要使用 workers,而是每個容器只跑一個 **Uvicorn 單一處理序**。我會在該章節中進一步說明。
    
    ///
    
    ## 多個工作處理序 { #multiple-workers }
    
    你可以用命令列選項 `--workers` 來啟動多個 workers:
    
    //// tab | `fastapi`
    
    如果你使用 `fastapi` 指令:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> run --workers 4 <u style="text-decoration-style:solid">main.py</u>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/stream-data.md

    ///
    
    To avoid blocking the event loop, you can simply declare the *path operation function* with regular `def` instead of `async def`, that way FastAPI will run it on a threadpool worker, to avoid blocking the main loop.
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/stream-data.md

    而且在許多情況下,讀取它們會是阻塞操作(可能阻塞事件迴圈),因為資料是從磁碟或網路讀取。
    
    /// info
    
    上面的範例其實是例外,因為 `io.BytesIO` 物件已在記憶體中,讀取不會阻塞任何東西。
    
    但在多數情況下,讀取檔案或類檔案物件會造成阻塞。
    
    ///
    
    為了避免阻塞事件迴圈,你可以將路徑操作函式宣告為一般的 `def`(而非 `async def`),這樣 FastAPI 會在 threadpool worker 上執行它,避免阻塞主事件迴圈。
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip
    
    如果你需要在 async 函式內呼叫阻塞程式碼,或在阻塞函式中呼叫 async 函式,你可以使用 [Asyncer](https://asyncer.tiangolo.com),它是 FastAPI 的姊妹函式庫。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  5. cmd/server-main.go

    	if noSubs {
    		return
    	}
    
    	globalTrace.Publish(info)
    }
    
    func bootstrapTrace(msg string, worker func()) {
    	if serverDebugLog {
    		fmt.Println(time.Now().Round(time.Millisecond).Format(time.RFC3339), " bootstrap: ", msg)
    	}
    
    	now := time.Now()
    	worker()
    	dur := time.Since(now)
    
    	info := madmin.TraceInfo{
    		TraceType: madmin.TraceBootstrap,
    		Time:      UTCNow(),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:18:36 GMT 2025
    - 35.9K bytes
    - Click Count (4)
  6. android/guava/src/com/google/common/net/HttpHeaders.java

        public static final String UNSAFE_URL = "unsafe-url";
      }
    
      /**
       * The HTTP <a href="https://www.w3.org/TR/service-workers/#update-algorithm">{@code
       * Service-Worker}</a> header field name.
       *
       * @since 20.0
       */
      public static final String SERVICE_WORKER = "Service-Worker";
    
      /** The HTTP {@code TE} header field name. */
      public static final String TE = "TE";
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 24 14:36:23 GMT 2026
    - 35.6K bytes
    - Click Count (0)
  7. CHANGELOG/CHANGELOG-1.7.md

        * Add registry action to the kubernetes-worker charm
    
        * Add support for kube-proxy cluster-cidr option to kubernetes-worker charm
    
        * Fix kubernetes-master charm starting services before TLS certs are saved
    
        * Fix kubernetes-worker charm failures in LXD
    
        * Fix stop hook failure on kubernetes-worker charm
    
        * Fix handling of juju kubernetes-worker.restart-needed state
    
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 308.7K bytes
    - Click Count (1)
  8. internal/s3select/json/preader.go

    	recordsRead int                       // number of records read in current slice
    	input       chan *queueItem           // input for workers
    	queue       chan *queueItem           // output from workers in order
    	err         error                     // global error state, only touched by Reader.Read
    	bufferPool  bpool.Pool[[]byte]        // pool of []byte objects for input
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. kotlin-js-store/yarn.lock

      integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==
    
    jest-worker@^27.4.5:
      version "27.5.1"
      resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0"
      integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==
      dependencies:
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 87.4K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/deployment/concepts.md

    例如,可以由下列工具處理:
    
    - Docker
    - Kubernetes
    - Docker Compose
    - Docker 的 Swarm 模式
    - Systemd
    - Supervisor
    - 由雲端供應商在其服務內部處理
    - 其他...
    
    ## 複本:行程與記憶體 { #replication-processes-and-memory }
    
    在 FastAPI 應用中,使用像 `fastapi` 指令(執行 Uvicorn)的伺服器程式,即使只在「一個行程」中執行,也能同時服務多個客戶端。
    
    但很多情況下,你會想同時執行多個工作行程(workers)。
    
    ### 多個行程 - Workers { #multiple-processes-workers }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 16.1K bytes
    - Click Count (0)
Back to Top