MCPcopy Index your code
hub / github.com/coleifer/huey / enqueue

Method enqueue

huey/storage.py:875–877  ·  view source on GitHub ↗
(self, data, priority=None)

Source from the content-addressed store, hash-verified

873 return conn
874
875 def enqueue(self, data, priority=None):
876 self.sql('insert into task (queue, data, priority) values (?, ?, ?)',
877 (self.name, self.to_blob(data), priority or 0), commit=True)
878
879 def dequeue(self):
880 with self.db(commit=True) as curs:

Callers

nothing calls this directly

Calls 1

sqlMethod · 0.80

Tested by

no test coverage detected