Skip to content

Daemonize --stale refreshes #60

@rraval

Description

@rraval

Hi there, I'm not a 100% sure if the problem is on the bkt side or somewhere else.

My use case is as follows:

  • direnv loads the .envrc for my project
  • .envrc invokes a bunch of bkt processes with bkt --ttl=90d --stale 1h --discard-failures -- <very slow command>
  • Every hour, loading the environment variables gets stuck with a message like:
direnv: ([<.envrc path>]) is taking a while to execute. Use CTRL-C to give up.

I've verified that the direct bkt invocations return quickly by adding set -x to my .envrc.

If I'm understanding direnv/direnv#626 (comment) correctly, the bash process that direnv is launching is still waiting for all sub-sub-processes to exit, which somehow includes the child process that bkt launches to refresh the --stale cache.

Would it be possible to truly daemonize the refresh, allowing direnv to run quickly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions