MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / _insert_task

Method _insert_task

cassandra/cluster.py:4272–4278  ·  view source on GitHub ↗
(self, delay, task)

Source from the content-addressed store, hash-verified

4270 log.debug("Ignoring schedule_unique for already-scheduled task: %r", task)
4271
4272 def _insert_task(self, delay, task):
4273 if not self.is_shutdown:
4274 run_at = time.time() + delay
4275 self._scheduled_tasks.add(task)
4276 self._queue.put_nowait((run_at, next(self._count), task))
4277 else:
4278 log.debug("Ignoring scheduled task after shutdown: %r", task)
4279
4280 def run(self):
4281 while True:

Callers 2

scheduleMethod · 0.95
schedule_uniqueMethod · 0.95

Calls 2

timeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected