Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Reject out-of-range numeric cron fields

Open Beginner friendly
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
devops

Research direction

Start in src/restic_compose_backup/cron.py by reading validate_schedule() and validate_field(). Trace how each numeric field's validation result is handled, then ensure any out-of-range value causes schedule validation to fail. Done means schedules such as 60 25 * * * are rejected or fall back instead of being emitted into the crontab.

Written by the indexing model from the issue text.

Description

In src/restic_compose_backup/cron.py, validate_schedule() calls validate_field() for each numeric field but discards the returned booleans. validate_field() returns False for out-of-range values, yet validate_schedule() then returns True unless int conversion raises. Thus schedules such as 60 25 * * * are accepted and emitted into the crontab instead of rejected/falling back. Please make validate_schedule() fail when any field is outside its allowed range.

Dominant language
Python
Stars
181
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lawndoc/stack-back

All issues in lawndoc/stack-back

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.