Skip to content
Snippets Groups Projects
Verified Commit 811718bc authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Just use default date of insertion to sort and reschedule job

parent ae202d1c
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ create table oneshot_task (
id bigserial primary key,
type text not null references oneshot_task_type(type),
arguments jsonb not null,
next_run timestamptz not null default now() + interval '60 s'
next_run timestamptz not null default now()
);
comment on table oneshot_task is 'One shot tasks to be scheduled as soon as possible.';
......
......@@ -25,7 +25,7 @@ create table oneshot_task (
id bigserial primary key,
type text not null references oneshot_task_type(type),
arguments jsonb not null,
next_run timestamptz not null default now() + interval '60 s'
next_run timestamptz not null default now()
);
comment on table oneshot_task is 'One shot tasks to be scheduled as soon as possible.';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment