Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f85a66

Browse files
author
Vladimir Ershov
committed
always start job in next minute
1 parent7e974b5 commit3f85a66

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
returnNULL;
644644
}
645645

646+
/* to avoid to set job on minute has already passed we add 1 minute */
646647
curr=start;
648+
#ifdefHAVE_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)

[8]ページ先頭

©2009-2025 Movatter.jp