Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing in apscheduler #12

Open
kaihil opened this issue Mar 25, 2016 · 1 comment
Open

Indexing in apscheduler #12

kaihil opened this issue Mar 25, 2016 · 1 comment
Labels

Comments

@kaihil
Copy link

kaihil commented Mar 25, 2016

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
Copy link
Collaborator

bkabrda commented Mar 29, 2016

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

  • How is the scheduler accessing the data? Does it access it through SQLAlchemy methods or does it perhaps do raw queries?
  • Do scheduled tasks run in the same process as the main flask application? If not, do they have access rights to the location where whooshee stores its data?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants