-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from ywy2090/feature-milestone2
update wedpr scheduler
- Loading branch information
Showing
59 changed files
with
1,192 additions
and
1,330 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.venv | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,40 @@ | ||
|
||
CREATE TABLE t_job_worker ( | ||
worker_id VARCHAR(100) PRIMARY KEY, | ||
job_id VARCHAR(255) INDEX, | ||
CREATE TABLE wedpr_scheduler_job_worker_table ( | ||
worker_id VARCHAR(100), | ||
job_id VARCHAR(255), | ||
type VARCHAR(255), | ||
status VARCHAR(255), | ||
args TEXT, | ||
upstreams TEXT, | ||
inputs_statement TEXT, | ||
outputs TEXT, | ||
create_time BIGINT, | ||
update_time BIGINT | ||
)ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_unicode_ci; | ||
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (worker_id), | ||
INDEX job_id_idx (job_id) | ||
)ENGINE='InnoDB' DEFAULT CHARSET='utf8mb4' COLLATE='utf8mb4_bin' ROW_FORMAT=DYNAMIC; | ||
|
||
CREATE TABLE t_computing_node ( | ||
id VARCHAR(255) PRIMARY KEY, | ||
CREATE TABLE wedpr_scheduler_job_table ( | ||
job_id VARCHAR(255), | ||
request TEXT, | ||
status TEXT, | ||
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (job_id) | ||
)ENGINE='InnoDB' DEFAULT CHARSET='utf8mb4' COLLATE='utf8mb4_bin' ROW_FORMAT=DYNAMIC; | ||
|
||
CREATE TABLE wedpr_computing_node ( | ||
id VARCHAR(255), | ||
url VARCHAR(255), | ||
type VARCHAR(255), | ||
loading INT | ||
)ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_unicode_ci; | ||
loading INT, | ||
token VARCHAR(255) DEFAULT '', | ||
PRIMARY KEY (id) | ||
)ENGINE='InnoDB' DEFAULT CHARSET='utf8mb4' COLLATE='utf8mb4_bin' ROW_FORMAT=DYNAMIC; | ||
|
||
|
||
INSERT INTO t_computing_node (id, url, type, loading) | ||
INSERT INTO wedpr_computing_node (id, url, type, loading, token) | ||
VALUES | ||
("001", '127.0.0.1:10200', 'PSI', 0), | ||
("002", '127.0.0.1:10201', 'MPC', 0), | ||
("003", '127.0.0.1:10202', 'MODEL', 0); | ||
("001", '127.0.0.1:10200', 'PSI', 0, ''), | ||
("002", '127.0.0.1:10201', 'MPC', 0, ''), | ||
("003", '127.0.0.1:10202', 'MODEL', 0, ''); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
|
||
from datetime import datetime | ||
from ppc_common.db_models import db | ||
|
||
|
||
class JobWorkerRecord(db.Model): | ||
__tablename__ = 't_job_worker' | ||
worker_id = db.Column(db.String(100), primary_key=True) | ||
__tablename__ = 'wedpr_scheduler_job_worker_table' | ||
worker_id = db.Column(db.String(127), primary_key=True) | ||
job_id = db.Column(db.String(255), index=True) | ||
type = db.Column(db.String(255)) | ||
status = db.Column(db.String(255)) | ||
upstreams = db.Column(db.Text) | ||
inputs_statement = db.Column(db.Text) | ||
args = db.Column(db.Text) | ||
outputs = db.Column(db.Text) | ||
create_time = db.Column(db.BigInteger) | ||
update_time = db.Column(db.BigInteger) | ||
create_time = db.Column(db.DateTime, default=datetime.now) | ||
update_time = db.Column(db.DateTime, onupdate=datetime.now) |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
python/ppc_common/ppc_initialize/dataset_handler_initialize.py
This file was deleted.
Oops, something went wrong.
126 changes: 0 additions & 126 deletions
126
python/ppc_common/ppc_initialize/tests/dataset_initializer_test.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.