Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: clear output directory before writing gtfs #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzfranklin
Copy link
Contributor

@dzfranklin dzfranklin commented Aug 5, 2024

If you use a fork of this code that writes extra files to the gtfs zip and then switch back to a version that doesn't write them the extra files will be in any subsequent zips you generate until the OS clears the temp dir.

The "right" way to fix this is probably to use a unique temp dir on every run but I think that could be a breaking change.

- Clear /tmp/gtfs before running OutputGTFSCommand
- Log errors from running zip command
@miklcct
Copy link
Contributor

miklcct commented Sep 13, 2024

The problem also prevents me to run multiple instances of dtd2mysql against multiple databases at the same time on the same agent as part of a build pipeline.

I will ned to use a unique temp dir to prevent this problem.

@linusnorton
Copy link
Collaborator

yeah, I think that would be a better solution that clearing the tmp dir

@miklcct
Copy link
Contributor

miklcct commented Sep 13, 2024

I will make a pull request soon after confirming my fork runs without problem.

@miklcct miklcct mentioned this pull request Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants