-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updating tasks run while exporting #140
Comments
@ValeErre87 just to be clear, are you trying to export tasks or task runs? |
@othieno I tried to export task runs (in CVS format). |
@ValeErre87 I seem to have found a temporary solution to this. Could you try exporting and let me know if you're having issues? For future reference (beware, here be dragons): From my understanding, the problem is that the once a file is cached it is never updated and is always returned when an export is requested, which breaks the assumption that up-to-date task run data can be requested at any moment. A very quick and temporary solution is to delete the cached file, thereby forcing PyBossa to regenerate a more recent export, however this process will have to be repeated each time an export is requested. An ideal solution would be comparing the date and time the cached file was created (T_created) and the project data was last updated (T_last_updated). If T_created < T_last_updated, then the cache is updated. I'll keep this issue open until I can push a more permanent solution. Note: This bug has already been mentioned in issue #56. |
@othieno Hey Jeremy, thank you for fixing this. It works now. |
We need to fix some bugs we are experiencing when exporting the CVS file related to number of tasks run.
In theory, we should get an updated export every time we try to export the file from the web interface.
Unfortunately, this is not happening, so the file I obtain while exporting is not updated.
The text was updated successfully, but these errors were encountered: