-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deb385e
commit 121d65d
Showing
2 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
packages/docs/docs/api-reference/core/threads/thingsboard_thread.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
hide_table_of_contents: true | ||
--- | ||
|
||
<!-- markdownlint-disable --> | ||
|
||
# <kbd>module</kbd> `core.threads.thingsboard_thread` | ||
|
||
|
||
|
||
|
||
|
||
|
||
--- | ||
|
||
## <kbd>class</kbd> `ThingsBoardThread` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
--- | ||
|
||
### <kbd>method</kbd> `get_new_thread_object` | ||
|
||
```python | ||
get_new_thread_object() → Thread | ||
``` | ||
|
||
Return a new thread object that is to be started. | ||
|
||
--- | ||
|
||
### <kbd>method</kbd> `main` | ||
|
||
```python | ||
main(headless: bool = False) → None | ||
``` | ||
|
||
Main entrypoint of the thread. In headless mode, don't write to log files but print to console. | ||
|
||
--- | ||
|
||
### <kbd>method</kbd> `should_be_running` | ||
|
||
```python | ||
should_be_running(config: Config) → bool | ||
``` | ||
|
||
Based on the config, should the thread be running or not? | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters