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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models, migrations | |
def replicate_company(apps, schema_editor): | |
""" | |
THIS FUNCTION IS BROKEN |
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
#!/bin/python | |
# This simple Python script runs simulations for different retry algorithms | |
# The results are printed as CSV data to the console | |
# See this article on my blog for details: | |
# https://blog.miguelgrinberg.com/post/how-to-retry-with-class | |
from random import random, choice | |