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

FR: Add a per-schedule option to disable logging runs #366

Open
rauanmayemir opened this issue Dec 10, 2024 · 2 comments
Open

FR: Add a per-schedule option to disable logging runs #366

rauanmayemir opened this issue Dec 10, 2024 · 2 comments

Comments

@rauanmayemir
Copy link

With a new feature allowing to schedule jobs with second granularity, job_run_details is clogged very-very fast rendering it practically useless, especially if you do want to keep log run details for your critical jobs and discard them for routine queries.

Adding an argument to disable logging per-schedule would be very helpful:

cron.schedule(job_name text, schedule text, command text, log boolean)
@TsinghuaLucky912
Copy link
Contributor

Hello, I am quite interested in this. What I want to know is, do you think the reason for the blockage is because of writing logs?

Can you provide a case? Thank you

@rauanmayemir
Copy link
Author

What blockage? My main concern is not about log inserts adding some kind of load on the server (although it's probably a valid point, too), but purely convenience. 1 job run per second will instantly render job_run_details not very useful as most of the runs will be those second-granilarity schedules.

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

No branches or pull requests

2 participants