TaskRetries: init table
This commit is contained in:
@ -553,6 +553,21 @@ create table StarredJobs (
|
||||
foreign key (project, jobset) references Jobsets(project, name) on update cascade on delete cascade
|
||||
);
|
||||
|
||||
-- Events processed by hydra-notify which have failed at least once
|
||||
--
|
||||
-- The payload field contains the original, unparsed payload.
|
||||
--
|
||||
-- One row is created for each plugin which fails to process the event,
|
||||
-- with an increasing retry_at and attempts field.
|
||||
create table TaskRetries (
|
||||
id serial primary key not null,
|
||||
channel text not null,
|
||||
pluginname text not null,
|
||||
payload text not null,
|
||||
attempts integer not null,
|
||||
retry_at integer not null
|
||||
);
|
||||
create index IndexTaskRetriesOrdered on TaskRetries(retry_at asc);
|
||||
|
||||
-- The output paths that have permanently failed.
|
||||
create table FailedPaths (
|
||||
|
@ -39,6 +39,7 @@ make_schema_at("Hydra::Schema", {
|
||||
"starredjobs" => "StarredJobs",
|
||||
"systemstatus" => "SystemStatus",
|
||||
"systemtypes" => "SystemTypes",
|
||||
"taskretries" => "TaskRetries",
|
||||
"urirevmapper" => "UriRevMapper",
|
||||
"userroles" => "UserRoles",
|
||||
"users" => "Users",
|
||||
|
15
src/sql/upgrade-77.sql
Normal file
15
src/sql/upgrade-77.sql
Normal file
@ -0,0 +1,15 @@
|
||||
-- Events processed by hydra-notify which have failed at least once
|
||||
--
|
||||
-- The payload field contains the original, unparsed payload.
|
||||
--
|
||||
-- One row is created for each plugin which fails to process the event,
|
||||
-- with an increasing retry_at and attempts field.
|
||||
create table TaskRetries (
|
||||
id serial primary key not null,
|
||||
channel text not null,
|
||||
pluginname text not null,
|
||||
payload text not null,
|
||||
attempts integer not null,
|
||||
retry_at integer not null
|
||||
);
|
||||
create index IndexTaskRetriesOrdered on TaskRetries(retry_at asc);
|
Reference in New Issue
Block a user