Skip to content

Commit

Permalink
Change _async to default True
Browse files Browse the repository at this point in the history
Change _async to default True instead of False to mimic previous behavior.

Signed-off-by: ttrently <41705925+ttrently@users.noreply.github.com>
  • Loading branch information
ttrently authored and isohedronpipeline committed Mar 6, 2024
1 parent 0d1e29c commit d6ede1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rez/package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def remove_variant(self, variant):

return self.VARIANT_REMOVED

def add_variants_async(self, variants, _async=False):
def add_variants_async(self, variants, _async=True):
"""Update the package cache by adding some or all of the given variants.
This method is called when a context is created or sourced. Variants
Expand Down Expand Up @@ -461,6 +461,8 @@ def add_variants_async(self, variants, _async=False):
out_target = devnull

func = subprocess.Popen

# use subprocess.call if we are not running async since it is blocking
if not _async:
func = subprocess.call

Expand Down

0 comments on commit d6ede1b

Please sign in to comment.