Skip to content

Instantly share code, notes, and snippets.

View remidinishanth-ntnx's full-sized avatar
🎯
Focusing

N̷̪̞͈̓̀̒ͅi̵̩̺̋̊̀̆̿̂͊̇s̷͚͕͙͈̙̻̀̓͛̇͐͗̿̈̿͠ͅḧ̵͍̻́̑̽̆̇͂̈̈́a̴̧̡͈̥̜͑̄͆ͅń̶̨̧̹̤͍̹̙͛̓͘͜ͅt̵͖̳̣͎̦̰̱̖̬̐̐̓͂͆͠ͅh̴̢̨̛͇̘̪͖̼͚̋̌͂̀̅̍̀̕̚ͅͅ ̷̹͕̩̮̇̾̈̈̐͝ͅR̸͖̀͊̀̎͊́͛̒͘͘ę̴̟͍̣̻͈̮̝̫̞͘d̴͓̺̺̙͖̥̫̣͕̈́͛̅̍͑d̶̜̰̠͓̦̳̟̤̀̿̕y̵̩̮̿̎͐̍̃̃̚͝͠ remidinishanth-ntnx

🎯
Focusing
  • Nutanix
  • India
View GitHub Profile
@remidinishanth-ntnx
remidinishanth-ntnx / async_worker_pool.py
Created November 5, 2020 14:30 — forked from thehesiod/async_worker_pool.py
Asynchronous Worker Pool, allows for limiting number of concurrent tasks
import asyncio
from datetime import datetime, timezone
import os
def utc_now():
# utcnow returns a naive datetime, so we have to set the timezone manually <sigh>
return datetime.utcnow().replace(tzinfo=timezone.utc)
class Terminator:
pass