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

Update update_data.py tqdm progress bar only on a successful stage #155

Closed
2 tasks done
andrewtavis opened this issue Jun 9, 2024 · 8 comments
Closed
2 tasks done
Assignees
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

andrewtavis commented Jun 9, 2024

Terms

Description

As of now the update_data.py process allows will use a try-except to run the query here:

try:
    results = sparql.query().convert()
except HTTPError as err:
    print(f"HTTPError with {query_path}: {err}")

If the except block is entered, we still update the progress bar, but actually the exception triggers a retry later in the process. Ideally the progress bar would not be updated at this stage.

Contribution

Would be great to get some help here! Happy to support or get to it myself eventually 😊

@andrewtavis andrewtavis added feature New feature or request help wanted Extra attention is needed labels Jun 9, 2024
@henrikth93 henrikth93 self-assigned this Jul 1, 2024
@henrikth93
Copy link
Member

I will take a look at it!

@andrewtavis
Copy link
Member Author

Thanks, @henrikth93! As discussed, would be good to even comment out the query functionality for a moment while you work on this and then figure out how to only update the progress bar on a "successful query" :)

@axif0
Copy link
Contributor

axif0 commented Jul 9, 2024

@andrewtavis, hello.. can I give a try on this?

@andrewtavis
Copy link
Member Author

Hey @axif0 👋 This one is already assigned to @henrikth93. If he's fine with you taking over, then we can switch the assignment, or we can also try to find you a new issue :)

@henrikth93
Copy link
Member

Hello @axif0 and @andrewtavis! I am looking into this. If we can not find a new issue for @axif0, then maybe we can look into it together?

@andrewtavis
Copy link
Member Author

@axif0, do you want to check out #96? For this what would likely be best would be to get the articles from Wikidata for the given language and then filter them out from the result 😊 Would be happy to discuss this further!

@axif0
Copy link
Contributor

axif0 commented Jul 10, 2024

Thanks @andrewtavis, I have commented there. Will you please have a look at the comment section of #96?

@andrewtavis
Copy link
Member Author

andrewtavis commented Jul 24, 2024

Closed by #176 :) Thanks, @henrikth93! 🙌🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
Archived in project
Development

No branches or pull requests

3 participants