Skip to content

Commit e9c7699

Browse files
Do a random sleep between tasks when running as parallel pipeline
1 parent fddb527 commit e9c7699

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.7-alpine
22

3-
RUN pip install stackuchin==1.5.0
3+
RUN pip install stackuchin==1.5.1
44

55
VOLUME /project
66

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
here = path.abspath(path.dirname(__file__))
66

7-
current_version = str('1.5.0')
7+
current_version = str('1.5.1')
88

99
# Get the long description from the README file
1010
with open(path.join(here, 'README.md'), encoding='utf-8') as f:

src/stackuchin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self):
4343

4444
# noinspection PyMethodMayBeStatic
4545
def version(self):
46-
print("1.5.0")
46+
print("1.5.1")
4747

4848
# noinspection PyMethodMayBeStatic
4949
def create(self):

src/stackuchin/start_pipeline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import yaml
22
import concurrent.futures
33
import boto3
4+
import time
5+
import random
46

57

68
from stackuchin.create import create
@@ -12,6 +14,8 @@
1214

1315

1416
def perform_parallel_changes(stack):
17+
time.sleep(random.randint(0, 30))
18+
1519
if stack['action'] == 'create':
1620
return create(
1721
stack['profile_name'],

0 commit comments

Comments
 (0)