dthonon / Client_API_VN

Export from VisioNature (Biolovision) web site to local postgresql database
GNU General Public License v3.0
3 stars 1 forks source link

force update without sheduler #179

Open dthonon opened 2 years ago

dthonon commented 2 years ago

In GitLab by @fred.lpo07 on Nov 8, 2021, 15:31

It would be interesting to add possibility to bypass sheduler for updates. In this conditions, it would also be cool to optionnaly choose which update modification type we want ([only_modified, only_deleted, all])

dthonon commented 2 years ago

It possible to schedule at the minute level, meaning the task executes every minute. Running --schedule and then --update a minute later is nearly as good as forcing immediate update. Change YAML configuration with the following values:

            # Every hour
            year: '*'
            month: '*'
            day: '*'
            week: '*'
            day_of_week: '*'
            hour: '*'
            minute: '*'

I need to study if it is easy to force immediate update, but this workaround is sufficient for the moment, I think.

Selecting only modified or deleted should be feasible.