Commit ba833be5 authored by Leo Gordon's avatar Leo Gordon
Browse files

typo fix

parent d5f534d8
......@@ -32,7 +32,7 @@ sub register_message {
# (the timestamp 'moment' column will be set automatically)
my $sql = qq{
REPLACE INTO job_error (analysis_job_id, worker_id, retry_count, status, msg, is_error)
REPLACE INTO job_message (analysis_job_id, worker_id, retry_count, status, msg, is_error)
SELECT analysis_job_id, worker_id, retry_count, status, ?, ?
FROM analysis_job WHERE analysis_job_id=?
};
......
......@@ -155,7 +155,7 @@ CREATE TABLE analysis_job (
-- It may or may not indicate that the job was unsuccessful via is_error flag.
--
-- semantics:
-- analysis_job_id - the id of the job that died
-- analysis_job_id - the id of the job that threw the message
-- worker_id - the worker in charge of the job at the moment
-- moment - when the message was thrown
-- retry_count - of the job when the message was thrown
......@@ -172,7 +172,7 @@ CREATE TABLE job_message (
msg text,
is_error boolean,
PRIMARY KEY (analysis_job_id, worker_id, died),
PRIMARY KEY (analysis_job_id, worker_id, moment),
INDEX worker_id (worker_id),
INDEX analysis_job_id (analysis_job_id)
) ENGINE=InnoDB;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment