File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ from fluid.db import Database
1212db = Database(" postgresql+asyncpg://postgres:postgres@localhost:5432/fluid" )
1313```
1414
15- Note the use of the ` postgresql+asyncpg ` driver in the connection string. THis is required to use the asyncpg driver.
15+ Note the use of the ` postgresql+asyncpg ` driver in the connection string. This is required to use the asyncpg driver.
Original file line number Diff line number Diff line change @@ -78,9 +78,10 @@ Options:
7878 --help Show this message and exit.
7979
8080Commands:
81- exec Execute a registered task
82- ls List all tasks with their schedules
83- serve Start app server
81+ enable Enable or disable a task
82+ exec Execute a registered task
83+ ls List all tasks with their schedules
84+ serve Start app server.
8485```
8586
8687The command line tool provides a powerful interface to execute tasks, parameters are
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class Sleep(BaseModel):
3838 error : bool = False
3939
4040
41- @task (max_concurrency = 1 )
41+ @task (max_concurrency = 1 , timeout_seconds = 120 )
4242async def dummy (context : TaskRun [Sleep ]) -> None :
4343 """A task that sleeps for a while or errors"""
4444 await asyncio .sleep (context .params .sleep )
Original file line number Diff line number Diff line change 11"""Reusable server side python modules"""
22
3- __version__ = "1.3.1 "
3+ __version__ = "1.3.2 "
Original file line number Diff line number Diff line change 11[project ]
22name = " aio-fluid"
3- version = " 1.3.1 "
3+ version = " 1.3.2 "
44description = " Tools for backend python services"
55authors = [
66 {
name =
" Luca Sbardella" ,
email =
" [email protected] " }
You can’t perform that action at this time.
0 commit comments