-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release Ready #2812
Release Ready #2812
Changes from 133 commits
c010c2c
003ed25
cc42353
a070e71
32af57e
812e635
15d788b
3258568
b31baf3
5781e90
0dcbb91
25638bd
b1ee4bd
3772c23
995fa6e
a4602c5
688cee2
9a62832
d982c44
ee833a1
7f35800
e5b001c
6c8d590
2ff53b1
62ac0be
3959056
effdd41
78368a5
93d5a29
7a3a50d
9406688
c5687e7
7683067
3e8a6e5
7196b78
d02c440
8a32e62
4d0baaa
6df1bbf
4f50ffa
674a5a7
8e29c8e
cce031d
25b6adc
2153305
8878959
59d5ee4
a3a5406
1495ef2
33e639c
69f0d82
7a24ffc
f2f7b87
566f910
49a717b
c588411
2d24ccb
49e46cb
89ca2d6
9240e51
88b1b7e
c4facfd
f2653dd
d256667
cea4504
dd05af9
511593b
064a917
4774fda
ca489d5
2c8e856
04b9987
8ad033f
d66bf45
72b28a7
e13776c
023477f
12631f6
7ec8c35
3de5ba9
0c5d734
2979091
f8217ed
fc686e5
7b914d7
e2217e5
c2ee07c
c3f4eaa
90b149c
30b325d
0f00cde
e7d305d
2d945ca
84b7fea
f3002c1
6b2667a
082d5d2
6d25bd9
85e7b2d
da9952b
e69f65a
bf04ebc
d8ccbba
18ef774
ad1bc2d
22312a7
2c4341d
8a97792
b6adf94
7989c12
33890da
ed6f5e1
7cb9d97
744bcf5
6e5618d
b2e9ea6
c4811c1
99bea72
7551451
45ae77d
7250851
63a1fcc
81204db
b342b73
3e1e9b2
8c49085
0bea286
076cf2e
ebf45a8
c2b5690
592461b
34a4f66
4e0ddcc
1b3a206
ec00cd5
ceb2983
bb0b8ed
b1560c7
a7d5a27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ def start(ctx, disable_collection, development, port): | |
create_collection_status_records.si().apply_async() | ||
time.sleep(3) | ||
|
||
#put contributor breadth back in. Not sure why it was commented out | ||
contributor_breadth_model.si().apply_async() | ||
|
||
# start cloning repos when augur starts | ||
|
@@ -164,15 +165,15 @@ def determine_worker_processes(ratio,maximum): | |
process_list.append(subprocess.Popen(scheduling_worker.split(" "))) | ||
sleep_time += 6 | ||
|
||
#60% of estimate, Maximum value of 45 | ||
core_num_processes = determine_worker_processes(.6, 45) | ||
#60% of estimate, Maximum value of 45 : Reduced because it can be lower | ||
core_num_processes = determine_worker_processes(.15, 10) | ||
logger.info(f"Starting core worker processes with concurrency={core_num_processes}") | ||
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={core_num_processes} -n core:{uuid.uuid4().hex}@%h" | ||
process_list.append(subprocess.Popen(core_worker.split(" "))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
sleep_time += 6 | ||
|
||
#20% of estimate, Maximum value of 25 | ||
secondary_num_processes = determine_worker_processes(.25, 45) | ||
secondary_num_processes = determine_worker_processes(.70, 60) | ||
logger.info(f"Starting secondary worker processes with concurrency={secondary_num_processes}") | ||
secondary_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={secondary_num_processes} -n secondary:{uuid.uuid4().hex}@%h -Q secondary" | ||
process_list.append(subprocess.Popen(secondary_worker.split(" "))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
|
@@ -317,7 +318,7 @@ def assign_orphan_repos_to_default_user(session): | |
repos = session.execute_sql(query).fetchall() | ||
|
||
for repo in repos: | ||
UserRepo.insert(session,repo[0],1) | ||
UserRepo.insert(session, repo[0],1) | ||
|
||
|
||
@cli.command('export-env') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,15 +124,15 @@ def determine_worker_processes(ratio,maximum): | |
process_list.append(subprocess.Popen(scheduling_worker.split(" "))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
sleep_time += 6 | ||
|
||
#60% of estimate, Maximum value of 45 | ||
core_num_processes = determine_worker_processes(.6, 45) | ||
#60% of estimate, Maximum value of 45: Reduced because not needed | ||
core_num_processes = determine_worker_processes(.15, 10) | ||
logger.info(f"Starting core worker processes with concurrency={core_num_processes}") | ||
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={core_num_processes} -n core:{uuid.uuid4().hex}@%h" | ||
process_list.append(subprocess.Popen(core_worker.split(" "))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
sleep_time += 6 | ||
|
||
#20% of estimate, Maximum value of 25 | ||
secondary_num_processes = determine_worker_processes(.25, 45) | ||
secondary_num_processes = determine_worker_processes(.70, 60) | ||
logger.info(f"Starting secondary worker processes with concurrency={secondary_num_processes}") | ||
secondary_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency={secondary_num_processes} -n secondary:{uuid.uuid4().hex}@%h -Q secondary" | ||
process_list.append(subprocess.Popen(secondary_worker.split(" "))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
|
@@ -301,4 +301,4 @@ def assign_orphan_repos_to_default_user(session): | |
repos = session.execute_sql(query).fetchall() | ||
|
||
for repo in repos: | ||
UserRepo.insert(session,repo[0],1) | ||
UserRepo.insert(session, repo[0],1) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ def start(): | |
secondary_worker_process = None | ||
|
||
scheduling_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency=1 -n scheduling:{uuid.uuid4().hex}@%h -Q scheduling" | ||
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency=45 -n core:{uuid.uuid4().hex}@%h" | ||
secondary_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency=45 -n secondary:{uuid.uuid4().hex}@%h -Q secondary" | ||
core_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency=20 -n core:{uuid.uuid4().hex}@%h" | ||
secondary_worker = f"celery -A augur.tasks.init.celery_app.celery_app worker -l info --concurrency=60 -n secondary:{uuid.uuid4().hex}@%h -Q secondary" | ||
|
||
scheduling_worker_process = subprocess.Popen(scheduling_worker.split(" ")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
core_worker_process = subprocess.Popen(core_worker.split(" ")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pylint] reported by reviewdog 🐶 |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pylint] reported by reviewdog 🐶
R1732: Consider using 'with' for resource-allocating operations (consider-using-with)