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

Job scheduler run flag #1407

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

Conversation

kompy99
Copy link

@kompy99 kompy99 commented Nov 25, 2023

Configured job scheduler to run based on a configuration.

Job scheduler is initialized during:

  1. EvaDB Server mode - During server startup
  2. Python package mode - During init of first connection object

The job scheduler process polls the "jobs" DB configuration to determine whether to execute background jobs.

This way, the job scheduler can be enabled and disabled via SQL commands using the SET statement.

Usage

Enable scheduler

SET jobs = "True"

Disable scheduler

SET jobs = "False"

The jobs configuration is set to "False" by default so there is no change in existing behaviour of the scheduler.

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

Successfully merging this pull request may close these issues.

1 participant