Giter Club home page Giter Club logo

Comments (4)

MapZombie avatar MapZombie commented on June 28, 2024

I see that this can be done through REST. But not really sure where to start. An example would be great.

from geoportal-server-harvester.

MapZombie avatar MapZombie commented on June 28, 2024

I tried POSTing to the endpoint using Postman:
http://calwgist08:8080/geoharvest/rest/harvester/tasks/cf144d6a-05a2-450d-a9d0-e985ba1571bc/schedule

{"uuid":"57d0e78f-4b10-4087-89e3-eaaabf6032ab","taskId":"cf144d6a-05a2-450d-a9d0-e985ba1571bc","triggerDefinition":{"type":"PERIOD","taskDefinition":{"processor":null,"source":{"type":"UNC","label":"GOM","properties":{"unc-root-folder":"C:\\Harvest","unc-pattern":""},"keywords":[]},"destinations":[{"action":{"type":"FOLDER","label":"xmls","properties":{"folder-root-folder":"c:\\harvest","folder-cleanup":"false"},"keywords":[]},"drains":null}],"keywords":[],"incremental":false,"ignoreRobotsTxt":false},"properties":{"t-period":"R/20170726T02/P1D"},"keywords":[]}}

I get this error:
26-Jul-2017 16:36:16.645 SEVERE [http-apr-8080-exec-8] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [spring] in context with path [/geoharvest] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException at com.esri.geoportal.harvester.engine.defaults.DefaultTriggersService.schedule(DefaultTriggersService.java:177) at com.esri.geoportal.harvester.rest.TaskController.scheduleTask(TaskController.java:434)

from geoportal-server-harvester.

MapZombie avatar MapZombie commented on June 28, 2024

Any clues on how this works? Thanks

from geoportal-server-harvester.

pandzel-zz avatar pandzel-zz commented on June 28, 2024

If you are interested only in harvesting daily (not weekly, monthly, etc.) then why not to choose to "harvest at"? It allows to exactly what you need: harvesting at the particular hour every day.

from geoportal-server-harvester.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.