Skip to content

Commit

Permalink
Merge pull request #18 from GlueOps/feature/configurable-requeue-sleep
Browse files Browse the repository at this point in the history
feat(pull-request_bot): configure requeue wait
  • Loading branch information
fernandoataoldotcom authored Sep 16, 2023
2 parents c350bce + a4fb551 commit 584955d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
'CAPTAIN_DOMAIN_K8S_CONFIGMAP_NAME',
'glueops-captain-domain'
)
WATCH_FOR_APPS_DELAY_SECONDS =int(os.getenv(
'WATCH_FOR_APPS_DELAY_SECONDS',
'10'
))


def get_captain_domain():
Expand Down Expand Up @@ -169,7 +173,7 @@ def main():
else:
logger.info(f'SKIPPING. This app does not have the annotation preview_environment == true : {app["metadata"]["name"]}')
# Sleep for some time before checking again
time.sleep(10)
time.sleep(WATCH_FOR_APPS_DELAY_SECONDS)

def get_grafana_url_prefix():
return "https://grafana." + CAPTAIN_DOMAIN
Expand Down

0 comments on commit 584955d

Please sign in to comment.