Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hour (0.35 sec)

  1. docs/fr/docs/tutorial/background-tasks.md

    # Tâches d'arrière-plan
    
    Vous pouvez définir des tâches d'arrière-plan qui seront exécutées après avoir retourné une réponse.
    
    Ceci est utile pour les opérations qui doivent avoir lieu après une requête, mais où le client n'a pas réellement besoin d'attendre que l'opération soit terminée pour recevoir une réponse.
    
    Cela comprend, par exemple :
    
    * Les notifications par email envoyées après l'exécution d'une action :
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 5.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/background-tasks.md

    ```Python hl_lines="6-9"
    {!../../../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:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top