aboutsummaryrefslogtreecommitdiff
path: root/scripts/rqtl2/entry.py
AgeCommit message (Collapse)Author
2025-05-12Pass in the logger, rather than the name of the logger.Frederick Muriuki Muriithi
2025-05-12Handle exceptions within the `with` to prevent silent failureFrederick Muriuki Muriithi
One, or both of the context managers is "swallowing" exceptions, leading to silent failures. This change manually handles the exceptions within the context manager to avoid such silent failures.
2024-12-03Pass the redis connection and fully qualified job idFrederick Muriuki Muriithi
Pass the redis connection on to the function used to build main since it might need to use a connection to redis. Also pass the computed fully qualified job id rather than recomputing it every time. Update dependent functions to take the new arguments.
2024-12-03Wrap everything in try-catch to handle errors gracefully.Frederick Muriuki Muriithi
Put everything in the build_main function within a try-catch block to ensure we capture all exceptions that might occur in different scripts and log them out. This helps with debugging errors in the asynchronous scripts.
2024-12-02Send logs to STDOUT too.Frederick Muriuki Muriithi
2024-12-02Change from 'pending' to 'started' on entry to script.Frederick Muriuki Muriithi
Update the status of the job from 'pending' to 'started' at the entry-point of the script.
2024-11-22Use gn-libs code for db connection.Frederick Muriuki Muriithi
Use the code in gn-libs to connect to the database, rather than a local module.
2024-10-24Move logger creation to `build_main` functionFrederick Muriuki Muriithi
Since the module-level loggers are built mostly the same, move the creation of the logger to the more general function to reduce repetition.
2024-10-14BugFix: Use provided prefixFrederick Muriuki Muriithi
Use the provided prefix rather than calling `jobs.jobsnamespace()` function that depends of an app context existing.
2024-07-25Rename module: qc_app --> uploaderFrederick Muriuki Muriithi
2024-01-23Update scripts to use redis prefix.Frederick Muriuki Muriithi
2024-01-19scripts: Process R/qtl2 bundleFrederick Muriuki Muriithi
Build script to start the processing of the R/qtl2 bundle.
2024-01-15Extract common structure into separate modules.Frederick Muriuki Muriithi