peek_plugin_base.worker package¶
Submodules¶
peek_plugin_base.worker.CeleryApp module¶
peek_plugin_base.worker.CeleryDbConn module¶
-
peek_plugin_base.worker.CeleryDbConn.
prefetchDeclarativeIds
(Declarative, count) → Optional[Iterable[int]][source]¶ Prefetch Declarative IDs
This function prefetches a chunk of IDs from a database sequence. Doing this allows us to preallocate the IDs before an insert, which significantly speeds up :
Orm inserts, especially those using inheritance
When we need the ID to assign it to a related object that we’re also inserting.
- Parameters
Declarative – The SQLAlchemy declarative class. (The class that inherits from DeclarativeBase)
count – The number of IDs to prefetch
- Returns
An iterable that dispenses the new IDs
peek_plugin_base.worker.CeleryDbConnInit module¶
peek_plugin_base.worker.CeleryFileStorageConfig module¶
peek_plugin_base.worker.CeleryLogicServerInfoConfig module¶
-
peek_plugin_base.worker.CeleryLogicServerInfoConfig.
getLogicServiceHttpDetails
() → peek_plugin_base.PeekPlatformServerInfoHookABC.PeekPlatformServerInfoHookABC[source]¶
peek_plugin_base.worker.PeekWorkerPlatformHookABC module¶
-
class
peek_plugin_base.worker.PeekWorkerPlatformHookABC.
PeekWorkerPlatformHookABC
[source]¶ Bases:
peek_plugin_base.PeekPlatformCommonHookABC.PeekPlatformCommonHookABC
,peek_plugin_base.PeekPlatformFileStorageHookABC.PeekPlatformFileStorageHookABC
,peek_plugin_base.PeekPlatformServerInfoHookABC.PeekPlatformServerInfoHookABC