Content-Length: 265921 | pFad | http://github.com/postgrespro/postgres_cluster/commit/3f85a66b4356abb6de3b232103ae8284feefb6ff

EA always start job in next minute · postgrespro/postgres_cluster@3f85a66 · GitHub
Skip to content

Commit 3f85a66

Browse files
author
Vladimir Ershov
committed
always start job in next minute
1 parent 7e974b5 commit 3f85a66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/scheduler_manager.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,14 @@ TimestampTz *scheduler_calc_next_task_time(scheduler_task_t *task, TimestampTz s
643643
return NULL;
644644
}
645645

646+
/* to avoid to set job on minute has already passed we add 1 minute */
646647
curr = start;
648+
#ifdef HAVE_INT64_TIMESTAMP
649+
curr += USECS_PER_MINUTE;
650+
#else
651+
curr += SECS_PER_MINUTE;
652+
#endif
653+
647654
nextarray = worker_alloc(sizeof(TimestampTz) * REALLOC_STEP);
648655
convert_rule_to_cron(task->rule, cron);
649656

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/3f85a66b4356abb6de3b232103ae8284feefb6ff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy