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

Commit

Permalink
ENH: refs #68. Added support for condor_dag and condor_dag_job to dat…
Browse files Browse the repository at this point in the history
…abase.
  • Loading branch information
Michael Grauer committed Nov 11, 2011
1 parent f379b05 commit 3793443
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/batchmake/database/mysql/0.1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,22 @@ CREATE TABLE IF NOT EXISTS batchmake_itemmetric (
metric_name character varying(64) NOT NULL,
bms_name character varying(256) NOT NULL,
PRIMARY KEY (itemmetric_id)
) DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS condor_dag (
condor_dag_id bigint(20) NOT NULL AUTO_INCREMENT,
batchmake_task_id bigint(20) NOT NULL,
log_filename text NOT NULL,
PRIMARY KEY (condor_dag_id)
) DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS condor_job (
condor_job_id bigint(20) NOT NULL AUTO_INCREMENT,
condor_dag_id bigint(20) NOT NULL,
jobdefinition_filename text NOT NULL,
output_filename text NOT NULL,
error_filename text NOT NULL,
log_filename text NOT NULL,
PRIMARY KEY (condor_job_id)
) DEFAULT CHARSET=utf8;
15 changes: 15 additions & 0 deletions modules/batchmake/database/pgsql/0.1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@ CREATE TABLE batchmake_itemmetric (
itemmetric_id serial PRIMARY KEY,
metric_name character varying(64) NOT NULL,
bms_name character varying(256) NOT NULL
);

CREATE TABLE condor_dag (
condor_dag_id serial PRIMARY KEY,
batchmake_task_id bigint NOT NULL,
log_filename text NOT NULL
);

CREATE TABLE condor_job (
condor_job_id serial PRIMARY KEY,
condor_dag_id bigint NOT NULL,
jobdefinition_filename text NOT NULL,
output_filename text NOT NULL,
error_filename text NOT NULL,
log_filename text NOT NULL
);

0 comments on commit 3793443

Please sign in to comment.