azkaban-aplcache

add flow_id to key set of execution_jobs table (#1523) 1.

10/6/2017 3:21:51 PM

Details

diff --git a/azkaban-db/src/main/sql/create.execution_jobs.sql b/azkaban-db/src/main/sql/create.execution_jobs.sql
index d2379f2..d973ae2 100644
--- a/azkaban-db/src/main/sql/create.execution_jobs.sql
+++ b/azkaban-db/src/main/sql/create.execution_jobs.sql
@@ -11,12 +11,8 @@ CREATE TABLE execution_jobs (
   input_params  LONGBLOB,
   output_params LONGBLOB,
   attachments   LONGBLOB,
-  PRIMARY KEY (exec_id, job_id, attempt)
+  PRIMARY KEY (exec_id, job_id, flow_id, attempt)
 );
 
-CREATE INDEX exec_job
-  ON execution_jobs (exec_id, job_id);
-CREATE INDEX exec_id
-  ON execution_jobs (exec_id);
 CREATE INDEX ex_job_id
   ON execution_jobs (project_id, job_id);