pypushflow.persistence.pymongo.PyMongoWorkflowDbClient#
- class pypushflow.persistence.pymongo.PyMongoWorkflowDbClient(url, database, collection)[source]#
Bases:
MongoWorkflowDbClientClient of an external Mongo database for storing workflow executions.
- Parameters:
url (
str)database (
str)collection (
str)
- classmethod apply_actorinfo_filters(info)#
- Parameters:
info (
dict)- Return type:
dict
- endActor(actorId, status='finished')#
- Return type:
None
- endWorkflow(status='finished')#
- Return type:
None
- ensureEndWorkflow()#
- Return type:
None
- getActorInfo(actorId)#
- Return type:
None
- getWorkflowInfo()#
- Return type:
Optional[dict]
- classmethod get_dbclient_class(name)#
- classmethod register_actorinfo_filter(method)#
- Parameters:
method (
Callable[[dict],dict])
- setActorStatus(actorId, status)#
- Parameters:
status (
str)- Return type:
None
- setWorkflowStatus(status)#
- Parameters:
status (
str)- Return type:
None
- startActor(name, info=None)#
- Parameters:
name (
str)info (
Optional[str])
- startWorkflow(name)#
- Parameters:
name (
str)
- updateActorInfo(actorId, info)#
- Parameters:
info (
dict)- Return type:
None
- updateWorkflowInfo(info)#
- Parameters:
info (
dict)- Return type:
None