This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
1GB = 1024*1024*1024 # 1GB | |
with open('large_file', 'wb') as fout: | |
fout.write(os.urandom(1GB)) |