Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timer for saved searches #7152

Merged
merged 4 commits into from
Aug 6, 2020

Commits on Jul 31, 2020

  1. Add timer for saved searches IQSS#6910

    The timer method wraps the makeLinksForAllSavedSearches in a no-param method returning void with the @schedule annotation.
    The timer is sheduled to run once a week on Sunday at 12:30 AM. If we decide a different schedule is better in general, we
    should adjust thiis in the code before release. In special cases the schedule can be modified using and ejb-jar.xml file
    of the form(for ex Tuesday 2:30 PM) :
    
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee"
             version = "3.1"
             xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd">
        <enterprise-beans>
            <session>
                <ejb-name>SavedSearchServiceBean</ejb-name>
                <ejb-class>edu.harvard.iq.dataverse.search.savedsearch.SavedSearchServiceBean</ejb-class>
                <session-type>Stateless</session-type>
                <timer>
                    <schedule>
                        <minute>30</minute>
                        <hour>14</hour>
                        <day-of-week>Tue</day-of-week>
                    </schedule>
                    <timeout-method>
                        <method-name>makeLinksForAllSavedSearchesTimer</method-name>
                    </timeout-method>
                </timer>
            </session>
        </enterprise-beans>
    </ejb-jar>
    rtreacy committed Jul 31, 2020
    Configuration menu
    Copy the full SHA
    4c28c54 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2020

  1. Added isTimerServer check; changed dayOfWeek parameter to numeric (le…

    …ss error prone than alpha text) -"0" instead of "Sun"
    
    added documentation in timers.rst, including how to reconfigure timer schedule  (caveat reconfiguring should be a one-off, tracking ejb-jar.xml files opens a can of worms IMHO). Added a sample ejb-jar file
    rtreacy committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    e37cf1e View commit details
    Browse the repository at this point in the history
  2. saved search doc clean up IQSS#6910

    - made sample file downloadable
    - removed line from API Guide about cron job (not needed now)
    - linked pages about Saved Search to each other
    - typos, formatting
    pdurbin committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    b6defb3 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1 from IQSS/6910-suggestions

    saved search doc clean up IQSS#6910
    rtreacy committed Aug 5, 2020
    Configuration menu
    Copy the full SHA
    f6e3d0f View commit details
    Browse the repository at this point in the history