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

Improve throughput for immediate tasks (1/3) #5841

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 27, 2024

  1. Refactor functions and comments

    * Refatored handle_available_tasks for more clarity of the flow
    * Refactored iter_tasks for more flow clarity and to prepare
      prioritizaton of immediate tasks.
    * Added/changed misc comments, docstrings and names
    pedro-psb committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    a2645c9 View commit details
    Browse the repository at this point in the history
  2. Define immediate tasks and prioritize them

    This defines tasks of the type "immediate" by adding a Task.immediate(bool)
    field to the Task model. Non-immediate are called "long".
    
    Then, these type of task is put in front of the line when the worker
    queries for new available tasks.
    
    Closes pulp#5767
    pedro-psb committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    589053b View commit details
    Browse the repository at this point in the history