Skip to content

Commit 4ab1482

Browse files
authored
Add enable to docs (#58)
1 parent 0fe47ee commit 4ab1482

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

docs/tutorials/db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ from fluid.db import Database
1212
db = 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.

docs/tutorials/task_app.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ Options:
7878
--help Show this message and exit.
7979

8080
Commands:
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

8687
The command line tool provides a powerful interface to execute tasks, parameters are

examples/tasks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
4242
async def dummy(context: TaskRun[Sleep]) -> None:
4343
"""A task that sleeps for a while or errors"""
4444
await asyncio.sleep(context.params.sleep)

fluid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Reusable server side python modules"""
22

3-
__version__ = "1.3.1"
3+
__version__ = "1.3.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aio-fluid"
3-
version = "1.3.1"
3+
version = "1.3.2"
44
description = "Tools for backend python services"
55
authors = [
66
{ name = "Luca Sbardella", email = "[email protected]" }

0 commit comments

Comments
 (0)