mirror of
https://github.com/simon987/od-database.git
synced 2025-12-15 15:49:04 +00:00
Files are indexed into ES when task is complete
This commit is contained in:
19
crawl_server/task_db_init.sql
Normal file
19
crawl_server/task_db_init.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
CREATE TABLE Queue (
|
||||
id INTEGER PRIMARY KEY,
|
||||
website_id INTEGER,
|
||||
url TEXT,
|
||||
priority INTEGER,
|
||||
callback_type TEXT,
|
||||
callback_args TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE TaskResult (
|
||||
id INTEGER PRIMARY KEY,
|
||||
website_id INT,
|
||||
status_code TEXT,
|
||||
file_count INT,
|
||||
start_time INT,
|
||||
end_time INT,
|
||||
indexed_time INT DEFAULT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user