Task logs now stored on main server

This commit is contained in:
Simon
2018-06-24 20:32:02 -04:00
parent 059d9fd366
commit 5fd00f22af
10 changed files with 77 additions and 98 deletions

View File

@@ -30,4 +30,17 @@ CREATE TABLE CrawlServer (
name TEXT,
token TEXT,
slots INTEGER
)
);
CREATE TABLE TaskResult (
id INTEGER PRIMARY KEY,
server INT,
website_id INT,
status_code TEXT,
file_count INT,
start_time TIMESTAMP,
end_time TIMESTAMP,
indexed_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (server) REFERENCES CrawlServer(id)
);