Skip to content

Commit f7d18c1

Browse files
authored
Merge pull request #66 from launchdarkly-labs/fix_api_rate_issue
Added 10 second timer to APIs
2 parents a7b935a + b833e82 commit f7d18c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/workflows/create_metric_group.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def createMetricGroup():
5858

5959
headers = {
6060
"Content-Type": "application/json",
61-
"Authorization": ld_api_key
61+
"Authorization": ld_api_key,
62+
"LD-API-Version": "beta"
6263
}
6364

6465
response = requests.post(url, json=payload, headers=headers)

Diff for: .github/workflows/create_migration_flag.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def createMigrationFlag():
5050
"LD-API-Version": "beta"
5151
}
5252

53+
time.sleep(10)
5354
response = requests.post(url, json=payload, headers=headers)
5455

5556
if response.status_code == 201:

0 commit comments

Comments
 (0)