parameters: (self)
return_statement: return r.lock(lock_key, FLOW_LOCK_TTL)
docstring: Locks on this flow to let us make changes to the definition in a thread safe way
docstring_summary: Locks on this flow to let us make changes to the definition in a thread safe way
docstring_tokens: Locks on this flow to let us make changes to the definition in a thread safe way
function: def lock(self):
          """
          Locks on this flow to let us make changes to the definition in a thread safe way
          """
          r = get_redis_connection()
          lock_key = FLOW_LOCK_KEY % (self.org_id, self.id)
          return r.lock(lock_key, FLOW_LOCK_TTL)
function_tokens: def lock ( self ) : r = get_redis_connection ( ) lock_key = FLOW_LOCK_KEY % ( self . org_id , self . id ) return r . lock ( lock_key , FLOW_LOCK_TTL )