replicate / replicate/cog

Delete output paths after upload

Open
#1,434 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement rust
Dominant language
Go
Stars
9.5k
Forks
696
Avg merge
7d 19h
Merged PRs (30d)
2

Description

Currently, you hand off the output file to cog and then none of your code runs and the file gets left in place.
However, there's a class of bug where models can return outputs for previous predictions if some overwrite fails.

This also stops us from using tmp files as output files, since they never get deleted. Cog should probably delete those files (or even give the user a temp directory/overlay to work in).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test. Start by tracing how output files are handed off to Cog after prediction, then determine whether cleanup or a temporary working area is the intended direction. Done should prevent uploaded output files from remaining in place and avoid reusing stale outputs after an overwrite failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
backend, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.