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

#578: Add ability to schedule and manage recurring imports via the admin UI #707

Closed
wants to merge 2 commits into from

Conversation

pirate
Copy link
Member

@pirate pirate commented Apr 16, 2021

Fixes: #578

Remaining TODOs:

  • figure out which python scheduler to use
    • huey (my current favorite)
    • celery (ugh...)
    • APScheduler (will require lots of manual models and concurrency control code)
    • yacron (not sure if it can be configured dynamically)
    • dramatiq (doesn't support sqlite)
  • decide whether to continue supporting system crontab at all, or tear it out (imo we should just tear it out and move to using an internal scheduler)
  • fork the scheduled task worker off the server process automatically on startup, so no need to run separate archivebox schedule --foreground process manually
  • figure out how to enforce "at least once" or "at most once" concurrency model for scheduled tasks

@pirate pirate added size: medium touches: configuration why: functionality Intended to improve ArchiveBox functionality or features status: wip Work is in-progress / has already been partially completed touches: data/schema/architecture touches: dependencies/packaging Issues or changes that add/remove/affect dependencies touches: docs is: enhancement labels Apr 16, 2021
@lgtm-com
Copy link

lgtm-com bot commented Apr 16, 2021

This pull request introduces 1 alert when merging 940b9fe into 687c34a - view on LGTM.com

new alerts:

  • 1 for Except block handles 'BaseException'

@jhotujec
Copy link

Is this still alive? I'm looking for something similar, I would be ready to implement it if original author gave up on PR.

@pirate
Copy link
Member Author

pirate commented Apr 12, 2022

This is still alive but very slow moving. If you need an immediate solution I recommend building a quick and dirty GUI to modify the scheduler cron config directly or call out to the archivebox schedule CLI.

@GlassedSilver
Copy link

Any updates on this? IMHO this feature, even though it's mostly a UX improvement rather than a pure programmatic change could greatly improve ArchiveBox's utility.

@pirate
Copy link
Member Author

pirate commented Aug 16, 2023

Yes, I have a branch in progress to add django-huey-monitor, and huey has support for dynamically scheduling periodic tasks via admin UI.

@pirate
Copy link
Member Author

pirate commented Sep 4, 2023

Going to close this PR as the new django-huey-monitor / Celery based system I'm adding uses a totally different approach to handle scheduling tasks, and much of the UI we get for free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: medium status: wip Work is in-progress / has already been partially completed touches: configuration touches: data/schema/architecture touches: dependencies/packaging Issues or changes that add/remove/affect dependencies touches: docs why: functionality Intended to improve ArchiveBox functionality or features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Scheduling Archival from the UI
3 participants