You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/scheduler_job.c
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
#include"lib/stringinfo.h"
8
8
#include"scheduler_spi_utils.h"
9
9
#include"utils/timestamp.h"
10
+
#include"utils/builtins.h"
10
11
#include"memutils.h"
11
12
12
13
job_t*init_scheduler_job(job_t*j)
@@ -22,12 +23,13 @@ job_t *get_jobs_to_do(char *nodename, int *n, int *is_error)
22
23
{
23
24
job_t*jobs=NULL;
24
25
intret, got, i;
25
-
Oidargtypes[1] = { CSTRINGOID };
26
+
Oidargtypes[1] = { TEXTOID };
26
27
Datumvalues[1];
27
-
constchar*get_job_sql="select at.start_at, at.last_start_available, at.cron, max_run_time, cron.max_instancesfrom schedule.at at, schedule.cron cron where start_at <= 'now' and not at.active and (last_start_available is NULL OR last_start_available > 'now') and at.cron = cron.id AND cron.node = $1::text";
28
+
constchar*get_job_sql="select at.start_at, at.last_start_available, at.cron, max_run_time, cron.max_instances, cron.executor from schedule.at at, schedule.cron cron where start_at <= 'now' and not at.active and (last_start_available is NULL OR last_start_available > 'now') and at.cron = cron.id AND cron.node = $1 order by at.start_at";
0 commit comments