Skip to content

Tasks

materia.tasks

file

remove_cache_file

remove_cache_file(path, config)
PARAMETER DESCRIPTION
path

TYPE: Path

config

TYPE: Config

Source code in src/materia/tasks/file.py
10
11
12
13
14
15
16
17
@shared_task(name="remove_cache_file")
def remove_cache_file(path: Path, config: Config):
    target = FileSystem(path, config.application.working_directory.joinpath("cache"))

    async def wrapper():
        await target.remove()

    asyncio.run(wrapper())