mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1351] Question: how to remove a particular entry from archivebox scheduling list? #826
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#826
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hacback17 on GitHub (Feb 19, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1351
I am a first time user of ArchiveBox, and I have added multiple entries in my ArchiveBox Scheduler. Later I realised that I want to remove one particular entry from the scheduler. How can I do it?
@pirate commented on GitHub (Feb 19, 2024):
We don't have a native way to remove an individual entry from the CLI at the moment, it's a tricky problem because the file can be in a few different formats, can be edited directly by users and other programs, and not all the scheduler running methods are stateful (e.g.
--foregrounddoesn't store a crontab at all).Here are some options to accomplish what you need though:
Option 1. locate the crontab file for you user and remove individual lines from there
We use
python-crontabinternally to create scheduled jobs (which in-turn uses UNIX's crontab system with a crontab file for your user). https://pypi.org/project/python-crontab/Then edit/remove individual lines from that file, e.g.
/var/spool/cron/crontabs/usernameOption 2. Clear the whole list and add back entries manually
@hacback17 commented on GitHub (Feb 20, 2024):
Thank you for the guidance. it was very helpful.