Skip to content

Commit

Permalink
fix: testing delay before processing preview environment (#46)
Browse files Browse the repository at this point in the history
* fix: testing delay before processing preview environment

* feat: update sleep to 30 seconds
  • Loading branch information
venkatamutyala authored Jul 17, 2024
1 parent 32f60fb commit b328ff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def main():
if app['metadata']['annotations'].get('preview_environment') == 'true':
logger.info(f'OK. This app has the annotation preview_environment == true : {app["metadata"]["name"]}')
if app['metadata']['annotations']['head_sha'] not in commits_processed:
time.sleep(30)
# Check if the application was created by an ApplicationSet
owner_refs = app['metadata']['ownerReferences']
appset_created = any(
Expand Down

0 comments on commit b328ff5

Please sign in to comment.