Comments (8)
I definitely agree with you.
If we run the data import at night (I would say midnight) as you said AND the early warning system alerts are sent at 2pm for example, then we have time to check what is going wrong.
from gbif-alert.
Yeah. But I'll also implement also a check in the "sending alert" code to make sure they just it just waits if maintenance mode is on (so we don't break everything because we decided to change hours or because the server time is incorrect)
from gbif-alert.
Yes, for sure! 👍
from gbif-alert.
The occurrence import is now atomic (#62). If all goes well, we should be able to tackle this simply and elegantly using the following logic:
- new data is downloaded from GBIF
- maintenance mode is set to ON (website inaccessible + no emails sent)
- the occurrence import is done (atomically: all changes or nothing in the database)
- if the transaction was aborted: send an email to administrators to check what happened
- in all cases, the maintenance is set to OFF (in worse case - transaction aborted - no new data will be visible in the website but at least the data is still perfectly consistent and the website isn't stuck in maintenance mode)
from gbif-alert.
I find it a good workflow, it's defensive enough, I think. One small question, maybe trascurable problem: what to do with downloaded data in 1 if 4 happens for many consecutive days (e.g. you and your hpothetic back-up person are both on holidays)? Probably memory it's not a big issue, right?
from gbif-alert.
@damianooldoni: Indeed, I don't expect any disk space problem:
- The downloads are quite small (with the current species list, we're at 7 Mb / day)
- In addition to that, the download happens in a temporary directory: as soon as the processes finish, the system knows this disk space can be freed when necessary.
from gbif-alert.
Update: I'm considering using https://github.com/fabiocaccamo/django-maintenance-mode for the maintenance mode itself.
from gbif-alert.
This is working fine for years, IU think we can close this!
from gbif-alert.
Related Issues (20)
- Unselected polygons visualized on the map HOT 4
- Missing vernacular name on occurrence details page
- Show scientific name next GBIF ID in pop-ups HOT 4
- Allow users to assign tags to their own areas
- Remove code for now unnecessary HIDE_MY_CUSTOM_AREAS_PAGE settings HOT 1
- Better performances for Selenium-based testing
- WFS - some remarks HOT 15
- API instead of big download? HOT 1
- option to download data for a specific alert setting HOT 4
- option to select on IDVerificationstatus HOT 1
- Add EPSG:31370 (Lambert 72) as CRS to WFS https://alert.riparias.be/api/wfs/observations HOT 4
- Seen / unseen observations: performance improvements HOT 2
- Allow to use a genus or higher taxon ranks
- Background layers not visible HOT 2
- "ValueError at /my-custom-areas The file must contain a single feature, 212 features found" HOT 1
- maintenance mode error since yesterday's updates HOT 1
- maintenance mode: incorrect page/template HOT 1
- gbif-blocking-occurrence-download source code? HOT 4
- Distinguish between new observations and truely new populations
- git describe --always --tags issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbif-alert.