mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
|
||||
```python
|
||||
@register(ScheduledTask.DAILY)
|
||||
def my_custom_funciton():
|
||||
@scheduled_task(ScheduledTask.DAILY)
|
||||
def my_custom_function():
|
||||
# Perform a custom function once per day
|
||||
...
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user