Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
redmine_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
redmine_v2
Commits
d70bff1c
Commit
d70bff1c
authored
Dec 13, 2023
by
Tấn Trần Thanh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better performance
parent
6318c7e7
Pipeline
#1607
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
plugins/workflow_report/lib/workflow_report.rb
+8
-10
No files found.
plugins/workflow_report/lib/workflow_report.rb
View file @
d70bff1c
...
@@ -99,22 +99,20 @@ module WorkflowReport
...
@@ -99,22 +99,20 @@ module WorkflowReport
end
end
end
end
threads
=
github_links
.
map
do
|
key
,
value
s
|
threads
_pr
=
github_links
[
:prs
].
map
do
|
pr
s
|
Thread
.
new
do
Thread
.
new
do
if
key
==
:prs
values
.
each_with_index
do
|
prs
,
index
|
find_detail_pr
(
github
,
prs
[
:links
],
error_links
,
result
,
prs
[
:row
],
prs
[
:root_id
])
find_detail_pr
(
github
,
prs
[
:links
],
error_links
,
result
,
prs
[
:row
],
prs
[
:root_id
])
sleep
(
0.1
)
if
(
index
%
5
).
zero?
&&
index
.
positive?
end
else
values
.
each_with_index
do
|
issues
,
index
|
find_detail_issue
(
github
,
result
,
error_links
,
issues
[
:links
],
issues
[
:row
],
issues
[
:root_id
])
sleep
(
0.1
)
if
(
index
%
5
).
zero?
&&
index
.
positive?
end
end
end
end
threads_issue
=
github_links
[
:issues
].
map
do
|
issues
|
Thread
.
new
do
find_detail_issue
(
github
,
result
,
error_links
,
issues
[
:links
],
issues
[
:row
],
issues
[
:root_id
])
end
end
end
end
threads
.
each
(
&
:join
)
threads_issue
.
each
(
&
:join
)
threads_pr
.
each
(
&
:join
)
{
workflow_report:
result
,
error_links:
error_links
}
{
workflow_report:
result
,
error_links:
error_links
}
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment