Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 3793443

Browse files
author
Michael Grauer
committed
ENH: refs #68. Added support for condor_dag and condor_dag_job to database.
1 parent f379b05 commit 3793443

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

modules/batchmake/database/mysql/0.1.0.sql

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,22 @@ CREATE TABLE IF NOT EXISTS batchmake_itemmetric (
1010
metric_name character varying(64) NOT NULL,
1111
bms_name character varying(256) NOT NULL,
1212
PRIMARY KEY (itemmetric_id)
13+
) DEFAULT CHARSET=utf8;
14+
15+
CREATE TABLE IF NOT EXISTS condor_dag (
16+
condor_dag_id bigint(20) NOT NULL AUTO_INCREMENT,
17+
batchmake_task_id bigint(20) NOT NULL,
18+
log_filename text NOT NULL,
19+
PRIMARY KEY (condor_dag_id)
20+
) DEFAULT CHARSET=utf8;
21+
22+
23+
CREATE TABLE IF NOT EXISTS condor_job (
24+
condor_job_id bigint(20) NOT NULL AUTO_INCREMENT,
25+
condor_dag_id bigint(20) NOT NULL,
26+
jobdefinition_filename text NOT NULL,
27+
output_filename text NOT NULL,
28+
error_filename text NOT NULL,
29+
log_filename text NOT NULL,
30+
PRIMARY KEY (condor_job_id)
1331
) DEFAULT CHARSET=utf8;

modules/batchmake/database/pgsql/0.1.0.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ CREATE TABLE batchmake_itemmetric (
99
itemmetric_id serial PRIMARY KEY,
1010
metric_name character varying(64) NOT NULL,
1111
bms_name character varying(256) NOT NULL
12+
);
13+
14+
CREATE TABLE condor_dag (
15+
condor_dag_id serial PRIMARY KEY,
16+
batchmake_task_id bigint NOT NULL,
17+
log_filename text NOT NULL
18+
);
19+
20+
CREATE TABLE condor_job (
21+
condor_job_id serial PRIMARY KEY,
22+
condor_dag_id bigint NOT NULL,
23+
jobdefinition_filename text NOT NULL,
24+
output_filename text NOT NULL,
25+
error_filename text NOT NULL,
26+
log_filename text NOT NULL
1227
);

0 commit comments

Comments
 (0)