Skip to content

Automatically update the schema.org schema in DDE #358

@newgene

Description

@newgene

We currently have an add_core utility function to load the latest version of schema.org schema into DDE's Elasticsearch backend and also store the corresponding schema.org version:

def add_core(update=False):

We should regularly update the schema.org schema in DDE, let's start with once a month schedule.

An example of scheduled job is here (this one runs daily, so we should create a new job runs monthly):

crontab("0 0 * * *", func=run_routine, start=True) # run daily at mid-night

Please note we should validate the newer schema.org schema using biothings_schema package before any update. If it fails, we do not update DDE.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions