Skip to content

Commit

Permalink
datecheck function period fix (#650)
Browse files Browse the repository at this point in the history
* Ammending periodicity issue in TorQ/code/processes/reporter.q

* Fixed the periodicity issue.

* Amended periodicity of datecheck function in .timer.timer
  • Loading branch information
Lu-Devenny authored Jun 17, 2024
1 parent d354ba1 commit df6a81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/processes/reporter.q
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ publishresult:{[result]
@[csvloader;inputcsv;{write[`long$0;x;1b];exit 0}];

/- Add to timer and run datecheck
.timer.repeat[.proc.cp[];0Wp;0D00:00:20;(`datecheck;`);"Reporter - datecheck runs each day at midnight and schedules timers if they are needed on the current day"];
.timer.repeat[`timestamp$.proc.cd[]+00:00;0Wp;1D00:00:00;(`datecheck;`);"Reporter - datecheck runs each day at midnight and schedules timers if they are needed on the current day"];
.timer.repeat[.proc.cp[];0Wp;0D00:00:05;(`checktimeout;`);"Reporter - cancel queries which have timed out"];
.timer.repeat[.proc.cp[];0Wp;0D00:02:00;(`flushquerylogs;flushqueryloginterval);"Reporter - flush querylogs table of data that is older than the parameter"];

Expand Down

0 comments on commit df6a81e

Please sign in to comment.