Skip to content

Instantly share code, notes, and snippets.

View mndrake's full-sized avatar
🏠
Working from home

David Carlson mndrake

🏠
Working from home
View GitHub Profile
@KonoMaxi
KonoMaxi / 1_job_manager.py
Last active February 5, 2020 02:48
The JobManager currently handles pipelines of jobs for me in azure functions.
import json
import random
import logging
import re
from azure.cosmosdb.table.tableservice import TableService
from azure.storage.queue import QueueService, QueueMessageFormat
class JobManager(object):
def __init__(self, accound_name: str, account_key: str, job_group: str, job_id: str = None):
import os
1GB = 1024*1024*1024 # 1GB
with open('large_file', 'wb') as fout:
fout.write(os.urandom(1GB))