question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paging support for IScheduler

See original GitHub issue

Current interfaces to fetch jobs and triggers don’t support paging. But in case if there are many jobs or triggers the methods take some time to return data (see maikebing/SilkierQuartz#57 for example). Also it’s not feasible to use them for HTTP API for the same reason.

IScheduler should be extended to provide methods for fetching paged data.

I created PR #1272 as a draft of how the API should look like. I considered extending existing methods instead of creating overloads but in order to maintain Application Binary Interface compatibility overloads should be used. That’s due to the way how default values for methods are used.

In short my suggestion is to provide additional parameters for methods returning collections:

  • long take
  • long skip

These parameters map nicely to database queries. And using these parameters it’s possible to implement simple paging. Implementing paging in form of showing page numbers like [1] [2] **3** [4] [5] .. [10] will still be troublesome since that requires to know precise amount of items for the endpoint. I suggest to de-scope it and first implement the simplest paging described above.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lahmacommented, Sep 6, 2021

TBH I’m not super excited to introduce EF to the mix for data access. It has its merits and can make things easier, but the core library doesn’t currently have any deps to “fat libraries”.

Current data access implementation is quite low-level and even archaic, 1:1 ideology with Java version, and doesn’t require dependencies. Of course good API allows you to switch to EF provider with extra package dependency.

The APi requires some overhaul to support document databases in efficient way anyway.

1reaction
lahmacommented, Aug 30, 2021

Ideally I would see a project like SilkierQuartz or other established solution to be integrated into Quartz, allowing original maintainer(s) to improve and main Quartz project to ensure integration works as expected. I think a stable HTTP API is a first step, and has to account for paging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No pagination support found in Quartz scheduler on ...
Now easily we can implement pagination support on custom_job_detais table rather than QUARTZ_JOB_DETAILS. -Happy coding. Share.
Read more >
How to add paging option for Angular Scheduler with ...
This knowledge base article explains the way to include pagination support in Schedule. Step 1: Create an Angular Scheduler sample with resource option...
Read more >
How to implement pagination for resources in a scheduler
Hi, is it possible for schedueler to have pagination. For example if i have 300 resources. I would like to have 10 pages...
Read more >
iScheduler User Guide Site Contact Non-Clinical
Service Desk 204-940-8500 Option 4, Option 2 or toll-free 1-866-999-9698 Option 4, Option 2 ... The home page is the initial screen that...
Read more >
iScheduler User Guide Site Contact
Page 1 of 22 www.mbtelehealth.ca. iScheduler User Guide. Site Contact. Service Desk 204-940-8500 Option 4, Option 2 or toll-free 1-866-999-9698 Option 4, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found