Skip to content

Commit 896fbae

Browse files
committed
short sleep to avoid quick API requests
1 parent e18a3cf commit 896fbae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

newa/cli.py

+2
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,8 @@ def _jira_fake_id_generator() -> Generator[str, int, None]:
745745
if action.parent_id:
746746
parent = processed_actions.get(action.parent_id, None)
747747

748+
# wait a bit to avoid too frequest Jira API requests
749+
time.sleep(1.5)
748750
new_issue = jira_handler.create_issue(
749751
action,
750752
rendered_summary,

0 commit comments

Comments
 (0)