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

Add possibility to provide a priorization strategy for jobruns #4

Open
michaelschnyder opened this issue Mar 17, 2017 · 3 comments
Open
Labels
Milestone

Comments

@michaelschnyder
Copy link
Member

This feature is requested from one of our projects.

They would like to prioritize manual triggered jobs higher than monthly/daily triggered jobs.
We probably don't need this information in the database itself, it might by enough when we just could give the Scheduler a hint how the plan should be ordered by an additional configuration.

Source: @samuelmeierzuehlke

@michaelschnyder
Copy link
Member Author

This also relates to Jira SPPLAT-398, where an immediately run of a instant trigger is requested, See:


Current Situation
Excel exports join job queue behind scheduled PDF functions

New Situation
Process user's excel exports with a higher prioritization than Scheduled PDFs

Acceptance Criteria
Excel is placed at top of job queue
Scheduled PDF is still sent to the recipient with schedule assigned.

@michaelschnyder
Copy link
Member Author

michaelschnyder commented May 18, 2017

We could support this on different levels

  1. When defining the job
  2. When firing the JobRun

Or by isolating the current PriorizationLogic in a separate class that can be passed to the default Schedulers Configuration like

public class CustomPriorizationStrategy : IPriorizationStrategy
{
    public int CompareTo(JobRunAndJobAndTrigger first, JobRunAndJobAndTrigger second)
    {
        return 1;
    }
}

As discussed with @olibanjoli, we will first implement the proposed alternative to keep the flexibility for different scenarios. This implementation is also required for jobbrIO/jobbr-webapi#11

@michaelschnyder michaelschnyder modified the milestones: 1.0, 1.1 May 18, 2017
@olibanjoli olibanjoli changed the title Add possibility to set the priority for manual triggered jobs Add possibility to provide a priorization strategy for jobruns Jun 2, 2017
@michaelschnyder michaelschnyder removed their assignment Jul 10, 2017
@michaelschnyder
Copy link
Member Author

@samuelmeierzuehlke: Item will be moved to Version 1.1

@michaelschnyder michaelschnyder modified the milestones: 1.0, 1.1 Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant