-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue877/Add config option for archive directory #965
Issue877/Add config option for archive directory #965
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some documentation on how to use this? Should it be a configuration option?
Now that you mention it, it doesn't look like we currently have anything in the documentation that breaks down the individual configuration options, and I can't find a good place to include this info in the documentation as currently written. I propose we create a separate issue to add a page to the docs that breaks down all the config options and it'll include this as well. |
Sounds good |
This looks great! The only change I would recommend is to add a line to ci/bee_config.sh so that it's using your new config option. I'm also putting up an issue for changing this script so it's not hard coded since it's a pain to maintain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Approved!
Closes #877
This PR adds a config option to change the directory where workflows are archived. By default this is set to the same location that was used previously (
~/.beeflow/archives
). If you manually adjust thebee.conf
optionbee_archive_dir
to any other folder; it will be used instead. As with the default, the folder does not need to already exist.I tested this using the
cat-grep-tar
example ensuring the default behavior worked as expected. I then setbee_archive_dir = $HOMEDIR/BEE_jobs/archives
with $HOMEDIR filled in as appropriate; and ensured the archived was placed in the new folder.I ensured tests passed using: