Skip to content

Enable periodic cleanup of work_dir directories in ballista executor #1780

@Ted-Jiang

Description

@Ted-Jiang

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Enable periodic cleanup of work_dir directories in ballista executor which introduce 3 args
executor_cleanup_enable : Enable periodic cleanup of work_dir directories.
executor_cleanup_interval: Controls the interval in seconds , which the worker cleans up old job dirs on the local machine.
executor_cleanup_ttl: Number of seconds to retain job work_dir on each executor. This is a Time To Live and should depend on the amount of available disk space you have.

Describe the solution you'd like
Executor periodic spawn a task to clean work_dir, if all the files in job_dir not modified in executor_cleanup_ttl seconds, it will be deleted.

Describe alternatives you've considered
Scheduler send rpc call to delete files when job done.

Additional context
apache/datafusion-ballista#9

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions