mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Fix docstring for @scheduled_task decorator (#5626)
This commit is contained in:
parent
240a2e91dd
commit
d4f7e1130e
@ -269,8 +269,9 @@ def scheduled_task(interval: str, minutes: int = None, tasklist: TaskRegister =
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
```python
|
```python
|
||||||
@register(ScheduledTask.DAILY)
|
@scheduled_task(ScheduledTask.DAILY)
|
||||||
def my_custom_funciton():
|
def my_custom_function():
|
||||||
|
# Perform a custom function once per day
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user