-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Events scheduling based on crontab format strings (#95)
- Loading branch information
Showing
24 changed files
with
1,032 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{:up ["CREATE TABLE IF NOT EXISTS schedule ( | ||
id serial PRIMARY KEY, | ||
channel VARCHAR (255) NOT NULL, | ||
executable TEXT NOT NULL, | ||
crontab TEXT NOT NULL, | ||
run_at TIMESTAMP NOT NULL, | ||
created_at TIMESTAMP DEFAULT (NOW() AT TIME ZONE 'UTC') NOT NULL, | ||
updated_at TIMESTAMP DEFAULT (NOW() AT TIME ZONE 'UTC') NOT NULL | ||
);" | ||
"CREATE UNIQUE INDEX idx_schedule_channel_executable ON schedule (channel, executable);" | ||
"CREATE INDEX idx_schedule_channel ON schedule (channel);" | ||
"CREATE INDEX idx_schedule_run_at ON schedule (run_at);"] | ||
:down ["DROP INDEX idx_schedule_run_at;" | ||
"DROP INDEX idx_schedule_channel;" | ||
"DROP INDEX idx_schedule_channel_executable;" | ||
"DROP TABLE schedule;"]} |
Oops, something went wrong.