fedora-copr / flask-whooshee

Customizable Flask - SQLAlchemy - Whoosh integration
BSD 3-Clause "New" or "Revised" License
85 stars 33 forks source link

Indexing in apscheduler #12

Open kaihil opened 8 years ago

kaihil commented 8 years ago

I am using apscheduler to do some cron like jobs on my data. I just realized that those actions doesn't seem to go through flask-whooshee, since new created objects are not indexed.

What's the best way to achieve it? Maybe some explicitly triggered indexing?

I am using apscheduler in my flask app like this:

from apscheduler.schedulers.background import BackgroundScheduler

aps = BackgroundScheduler()
aps.start()
aps.add_job(some_data_creating_job, 'interval', days=1)
bkabrda commented 8 years ago

I honestly have no idea, I've never used apscheduler before. Some things to consider:

If you could show me your application or create a minimal reproducer, I'd find some time to investigate, but I'm shooting blind here and unfortunately I don't have the time to go learn apscheduler and find the reproducer myself.