-
Notifications
You must be signed in to change notification settings - Fork 6
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 #13 from Shareong/feature-milestone2
add scheduler
- Loading branch information
Showing
75 changed files
with
3,455 additions
and
1,425 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
from ppc_common.db_models import db | ||
|
||
|
||
class ComputingNodeRecord(db.Model): | ||
__tablename__ = 't_computing_node' | ||
id = db.Column(db.String(255), primary_key=True) | ||
url = db.Column(db.String(255)) | ||
type = db.Column(db.String(255)) | ||
loading = db.Column(db.Integer) |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
CREATE TABLE t_job_worker ( | ||
worker_id VARCHAR(100) PRIMARY KEY, | ||
job_id VARCHAR(255) INDEX, | ||
type VARCHAR(255), | ||
status VARCHAR(255), | ||
upstreams TEXT, | ||
inputs_statement TEXT, | ||
outputs TEXT, | ||
create_time BIGINT, | ||
update_time BIGINT | ||
)ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_unicode_ci; | ||
|
||
CREATE TABLE t_computing_node ( | ||
id VARCHAR(255) PRIMARY KEY, | ||
url VARCHAR(255), | ||
type VARCHAR(255), | ||
loading INT | ||
)ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_unicode_ci; | ||
|
||
|
||
INSERT INTO t_computing_node (id, url, type, loading) | ||
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); |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
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) | ||
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) | ||
outputs = db.Column(db.Text) | ||
create_time = db.Column(db.BigInteger) | ||
update_time = db.Column(db.BigInteger) |
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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.