initial commit

This commit is contained in:
2022-02-04 20:23:04 +01:00
parent 0c44f26522
commit 2b614f6bd3
21 changed files with 1236 additions and 1 deletions

2
scripts/listen_jobs.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
grpcurl --plaintext -d "{}" localhost:9092 gocron_server.Scheduler/ListenJobs

View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
NEW_EPOCH=$(($(date +%s) + 5))
grpcurl --plaintext -d "{\"UnitName\": \"incr\", \"RunAt\": $NEW_EPOCH}" localhost:9092 gocron_server.Scheduler/RunJob | jq

2
scripts/send_notify.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
grpcurl --plaintext -d "{\"UnitName\": \"$1\"}" localhost:9092 gocron_server.Scheduler/RunJob | jq