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

Feature/add better scheduling via croniter #473

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Aug 28, 2024

  1. Add the croniter library to requirements

    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4c2a711 View commit details
    Browse the repository at this point in the history
  2. Add a cron column with a validator.

    The goal is that the user can optionally store a cron value against a
    Resource to set the exact time a particular probe is run rather than
    the frequency with a random starting point.
    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    1e1d796 View commit details
    Browse the repository at this point in the history
  3. add_job in scheduler preferences the cron formula if available

    If the resource has a ``cron`` set then use it to determine the
    trigger for the job rather than the ``run_frequency`` (which is
    ignored).
    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    00aa2f1 View commit details
    Browse the repository at this point in the history
  4. Add migration to add the cron column to the resource table

    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    dae7b26 View commit details
    Browse the repository at this point in the history
  5. Set nullable=False to match migrations

    ``Resource.run_frequency`` and ``ResourceLock.resource_identifier``
    are not nullable according to the migrations, so that's now reflected
    in the model code.
    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a84f724 View commit details
    Browse the repository at this point in the history
  6. Add the crontab fields to the form

    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    74b9c37 View commit details
    Browse the repository at this point in the history
  7. Shorten lines to pass flake8 tests

    Henry Walshaw committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    00ce5e1 View commit details
    Browse the repository at this point in the history