Skip to content

Commit 3fee193

Browse files
committed
Code Restructuring
1 parent 226fdff commit 3fee193

25 files changed

+714
-753
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ compile-test/
44
output/
55
# answer/A1T1
66
# answer/A1T2
7-
*.txt
7+
*logs.txt
88
# part-00000
99
# w
1010
# w1

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Cloud Computing & Big Data
3+
Copyright (c) 2023 Cloud Computing & Big Data
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+6-389
Large diffs are not rendered by default.

common/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import smtplib
44
from dotenv import load_dotenv
55
from redis import Redis, ConnectionPool
6-
from queues.redisqueue import RedisQueue
6+
from common.redisqueue import RedisQueue
77

88
os.environ['TZ'] = 'Asia/Kolkata'
99
time.tzset()
File renamed without changes.

common/utils.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from datetime import datetime
2+
3+
class Tee(object):
4+
def __init__(self, *files):
5+
self.files = files
6+
def write(self, obj):
7+
for f in self.files:
8+
f.write(obj)
9+
def flush(self):
10+
pass
11+
12+
def get_datetime() -> str:
13+
now = datetime.now()
14+
timestamp = now.strftime("%d/%m/%Y %H:%M:%S")
15+
return timestamp

config/evaluator.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"docker_port": 10000,
1818
"docker_route": "run_job",
1919
"docker_image": "hadoop-3.2.2:0.1",
20-
"cpu_limit": 2,
20+
"cpu_limit": 6,
21+
"taskset": true,
2122
"memory_limit": "8000m",
2223
"shared_output_dir": "/home/vishalramesh01/backend-2022/output/",
2324
"docker_output_dir": "/output",

0 commit comments

Comments
 (0)