-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: modularize runner codebase (Issue #6) #13
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
base: main
Are you sure you want to change the base?
refactor: modularize runner codebase (Issue #6) #13
Conversation
|
Hey @nimaldanyathk! Thank you for opening a pull request. Make sure to tag the maintainers and link the issue you are solving in your pull-request description if you have not already and they'll review as soon as possible. |
|
Can you attach testing details by actually running the entire setup with the runner image from here? |
|
let me test by executing a run in the runner from the evoc ui |
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.
Was this a 100% AI refactoring?
Functionally I tested e2e that it works
| import threading | ||
| import subprocess | ||
| from app.config import REDIS_URL | ||
| from app.streaming import stream_reader, redis_stream_adder |
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.
remove unused import
| import os | ||
| import threading | ||
| import subprocess | ||
| from app.config import REDIS_URL |
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.
remove unused import
| from app.config import REDIS_URL | ||
| from app.streaming import stream_reader, redis_stream_adder | ||
|
|
||
| def run_subprocess(run_id, local_file_path, file_parent_dir, run_type, log_queue, redis_adder_thread): |
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.
can we log the run_id as its not being used and just for the sake of using it?
| import time | ||
| import queue | ||
| import redis | ||
| import threading |
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.
unused import
| @@ -1,5 +1,5 @@ | |||
| minio | |||
| psycopg2 | |||
| psycopg2-binary | |||
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.
?? why
|
/bounty 70 @nimaldanyathk |

Resolves #6. Refactors into a modular package containing separate modules for configuration, storage, database, streaming, execution, and orchestration.
@Ashrockzzz2003