Trailblazer

Latest version: v21.5.20

Safety actively analyzes 638396 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 25 of 35

15.1.6

Remove direct use of Job in Basehandler (247)


Changed

- Remove direct use of Job in Basehandler and use function to delete analysis jobs

15.1.5

refactor(constants) (246) (patch)

Changed

- Refactor constants and remove when not needed

15.1.4

Refactor date module (245)

Added

- Tests

Changed

- Move datetime function to single module.

15.1.3

Migrate add_user function to createhandler as it is using INSERT (244)

Changed

- Migrate add_user function to createhandler

15.1.2

Refactor update jobs (237)

Added

- Tests

Changed

- Split update_jobs into two new functions to remove side effects. Move end refactor new functions.
- Add DeleteHandler

15.1.1

Refactor sql analysis (238)

Added

- General filter module for Analysis
- Tests

Changed

- Refactor sql analysis and migrate it ReadHandler



15
Added

- SLURM module: models.py and api.py
- get_squeue_result for reading squeue output into Pydantic models
- get_current_analysis_status for getting the analysis status based on job status distribution
- SqueueResult and SqueueJob Pydantic models
- Constants:
- SlurmJobStatus
- HOURS_IN_DAY
- MINUTES_PER_HOUR
- SCALE_SECONDS_TO_MINUTES
- SlurmSqueueHeader
- Pipeline
- CSV file extension and file format
- Header to squeue output to enable CSV dict stream parsing and aliasing in Pydantic model
- Reading CSV str stream into list of dicts
- Tests

Refactor reading squeue output (241)

Changed

- Lock Pydantic version to 1.10.9
- Remove Pandas
- TrailblazerStatus to be a str based enum, enabling removal of ".value" accessing
- Decode bytes to string in subprocessing squeue output
- Refactored sacct test fixtures into squeue csv files
- All parsing oof squeue output is done when initializing Squeue Pydantic models

Page 25 of 35

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.