-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: add support for jobs using cron #126
base: main
Are you sure you want to change the base?
Conversation
src/makim/scheduler.py
Outdated
|
||
def _initialize_scheduler(self) -> None: | ||
"""Initialize the APScheduler with SQLite backend.""" | ||
if Path(self.job_store_path).exists(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we cannot remove the file every initialization, otherwise we will lose history or links for tasks already running
385282e
to
e88677c
Compare
e88677c
to
2c0573c
Compare
src/makim/scheduler.py
Outdated
) -> None: | ||
"""Execute a Makim task. | ||
|
||
Args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apply numpy docstyle
src/makim/cli/__init__.py
Outdated
@@ -96,18 +99,233 @@ def _get_command_from_cli() -> str: | |||
return command | |||
|
|||
|
|||
def _create_cron_table() -> Table: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move the scheduler code to its own module .. you can calle it as scheduler.py inside the cli folder.
Solves #30