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
CREATE OR REPLACE FUNCTION :GRAPHILE_SCHEDULER_SCHEMA.every_minute() RETURNS integer[] AS $$
SELECT ARRAY_AGG(range) FROM GENERATE_SERIES(0,59) AS range;
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION :GRAPHILE_SCHEDULER_SCHEMA.every_hour() RETURNS integer[] AS $$
SELECT ARRAY_AGG(range) FROM GENERATE_SERIES(0,23) AS range;
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION :GRAPHILE_SCHEDULER_SCHEMA.every_day() RETURNS integer[] AS $$
SELECT ARRAY_AGG(range) FROM GENERATE_SERIES(1,31) AS range;
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION :GRAPHILE_SCHEDULER_SCHEMA.every_month() RETURNS integer[] AS $$
SELECT ARRAY_AGG(range) FROM GENERATE_SERIES(1,12) AS range;
$$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION :GRAPHILE_SCHEDULER_SCHEMA.every_dow() RETURNS integer[] AS $$
SELECT ARRAY_AGG(range) FROM GENERATE_SERIES(0,7) AS range;
$$ LANGUAGE SQL;
I like what these guys did:
https://github.com/davbeck/graphile-scheduler
The text was updated successfully, but these errors were encountered: