[ 
https://issues.apache.org/jira/browse/SOLR-11066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16341625#comment-16341625
 ] 

Shalin Shekhar Mangar commented on SOLR-11066:
----------------------------------------------

This patch is a first cut of the feature. Integration tests are still pending. 
The configuration of the trigger supports the following parameter:
{code}
{
  "name": "scheduled_trigger_1",
  "type": "scheduled",
  "startTime": "2018-01-26T21:00:00",
  "every": "+1DAY",
  "graceTime": "60000"
}
{code}

# {{startTime}} is a date in the format {{yyyy-MM-dd'T'HH:mm:ss}}. If not 
specified then it will default to the trigger's creation time.
# {{every}} is a string which follows Solr's date math parser syntax e.g. 
{{+1DAY}}, {{+12HOURS}} etc. (note date math supports subtraction but using 
such expression will ensure that the trigger never produces an event
# {{graceTime}} is the number of milliseconds after the next scheduled time 
within which the trigger will fire an event (if it was not able to fire at the 
exact right time). It defaults to 15 minutes.

The trigger itself is quite simple. It applies the {{every}} date match 
expression on the {{startTime}} or the last fire time to derive the next 
scheduled time and if current time is greater than next scheduled time but 
within {{graceTime}} milliseconds then an event is generated.

> Implement a scheduled trigger
> -----------------------------
>
>                 Key: SOLR-11066
>                 URL: https://issues.apache.org/jira/browse/SOLR-11066
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: AutoScaling, SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Major
>             Fix For: master (8.0), 7.3
>
>         Attachments: SOLR-11066.patch
>
>
> Implement a trigger that runs on a fixed interval say every 1 hour or every 
> 24 hours starting at midnight etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to