pytroll / pytroll/trollflow2

When using use_tmp_file or staging_dir, move/rename files as soon as they are finished

Open
#129 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9
Forks
17
Avg merge
12d 4h
Merged PRs (30d)
6

Description

Feature Request

Is your feature request related to a problem? Please describe.

I'm using use_tmp_file or staging_dir to prevent files being shipped out by our file distribution system prematurely. Currently, trollflow2 stores all files to temporary files, then renames/moves them when they are all finished. It would be desirable to move/rename each file as soon as it's finished, so that products are delivered to users sooner.

Describe the solution you'd like

I would like that (optionally?) files are renamed to their final name as soon as they're finished.

Describe any changes to existing user workflow

None if the behaviour is optional. But I think I'm the only user anyway.

Additional context

Make the production so fast that it doesn't matter ;-)

Contributor guide

No contributing guide indexed for this repository

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 names no source files, tests, or entry points; start by tracing how use_tmp_file and staging_dir handle completed files in trollflow2. Define an optional behavior that moves each file when it is finished, while preserving the current behavior when disabled, and verify that users receive completed products before the full production ends.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.