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

create fix and add test for archivo sync mode to fetch correctly version update from databus #93

Open
JJ-Author opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JJ-Author
Copy link
Contributor

JJ-Author commented Oct 15, 2024

at the moment download function uses a static version

kuefmz@5a4c00a#diff-8ff9d079ad7f2b51ed3c75fb7cccb753ce68f6d0e9fdac46a7e4cbf0003da73dR17

we need to retrieve the latest version via issueing a sparql query to determine the file link of the most recent file.
then we can proceed.

open question is also whether the while loop is the way to go. copilot says its common but usually there is an asyncio for it.
Dunno for sure but in the end the sleep should not block other parts of the code.

import asyncio
import schedule

def job():
    print("Task is running...")

# Schedule the job every 10 seconds
schedule.every(10).seconds.do(job)

async def run_scheduler():
    while True:
        schedule.run_pending()
        await asyncio.sleep(60)

async def main():
    await run_scheduler()

if __name__ == "__main__":
    asyncio.run(main())
@JJ-Author JJ-Author added this to the TODO milestone Oct 15, 2024
@JJ-Author JJ-Author added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant