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

Increase number of jobs in history page #756

Closed
Giattuck opened this issue May 12, 2024 · 2 comments
Closed

Increase number of jobs in history page #756

Giattuck opened this issue May 12, 2024 · 2 comments
Assignees

Comments

@Giattuck
Copy link

Giattuck commented May 12, 2024

Hello, I have around 2000 completed events daily and the jobs history only shows 25/page making it difficult to search.

Looking at the source code this is defined on the History.class.js row 60:

if (!args.limit) args.limit = 25;

I was wondering if is it possible to change this kind of settings on the config file, without changing the code?

I would like to change this limit on the graph page too.

Thank you very much for this great tool!

@jhuckaby
Copy link
Owner

Excellent feature suggestion. I'll make this configurable in the next release. Thanks!

@jhuckaby jhuckaby self-assigned this May 13, 2024
@jhuckaby
Copy link
Owner

This is now fixed in Cronicle v0.9.51. To customize the limits, add these two configuration properties into your config.json file, but please note that they must go inside the client object, alongside properties like privilege_list and new_event_template:

"default_job_history_limit": 25,
"default_job_stats_limit": 50

Shown here in context:

"client": {
	"name": "Cronicle",
	"debug": 1,
	"default_password_type": "password",
	"privilege_list": [
		{ "id": "admin", "title": "Administrator" },
		{ "id": "create_events", "title": "Create Events" },
		{ "id": "edit_events", "title": "Edit Events" },
		{ "id": "delete_events", "title": "Delete Events" },
		{ "id": "run_events", "title": "Run Events" },
		{ "id": "abort_events", "title": "Abort Events" },
		{ "id": "state_update", "title": "Toggle Scheduler" }
	],
	"new_event_template": { 
		"enabled": 1, 
		"params": {}, 
		"timing": { "minutes": [0] },
		"max_children": 1,
		"timeout": 3600,
		"catch_up": 0,
		"queue_max": 1000
	},
	"default_job_history_limit": 25,
	"default_job_stats_limit": 50
},

If not configured, the defaults are 25 and 50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants