Skip to content
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

decreaseses the login from from 7s to 2.3s by making the sync_profile tasks happen on a delay #7652

Merged
merged 7 commits into from
Oct 12, 2020

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Oct 11, 2020

Description

decreaseses the login from from 7s to 2.3s by making the sync tasks happen on a delay

Refers/Fixes

self evident

Testing

tested locally

@codecov
Copy link

codecov bot commented Oct 11, 2020

Codecov Report

Merging #7652 into stable will decrease coverage by 0.00%.
The diff coverage is 22.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           stable    #7652      +/-   ##
==========================================
- Coverage   25.75%   25.74%   -0.01%     
==========================================
  Files         324      324              
  Lines       32420    32436      +16     
  Branches     4798     4799       +1     
==========================================
+ Hits         8349     8352       +3     
- Misses      23783    23791       +8     
- Partials      288      293       +5     
Impacted Files Coverage Δ
app/app/pipeline.py 0.00% <0.00%> (ø)
app/app/utils.py 23.30% <18.18%> (-0.41%) ⬇️
app/dashboard/tasks.py 25.16% <33.33%> (+0.33%) ⬆️
app/quests/views.py 16.22% <0.00%> (ø)
app/dashboard/views.py 10.34% <0.00%> (ø)
...rketing/management/commands/no_applicants_email.py 0.00% <0.00%> (ø)
...eting/management/commands/assemble_leaderboards.py 39.73% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84fc059...eb573e3. Read the comment docs.

actually_sync_profile(handle, user=user, hide_profile=hide_profile)


def actually_sync_profile(handle, user=None, hide_profile=True):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

many of the chat related tasks here could be done on a delay as well; a further PR would possibly do that so that upon first login were not blocking on things like chat tasks to create the profile

@owocki owocki changed the title decreaseses the login from from 7s to 2.3s by making the sync tasks happen on a delay decreaseses the login from from 7s to 2.3s by making the sync_profile tasks happen on a delay Oct 11, 2020
@thelostone-mc thelostone-mc changed the base branch from stable to master October 12, 2020 12:31
@thelostone-mc
Copy link
Member

getting this into master and then into stable for this weeks deploy

@thelostone-mc thelostone-mc merged commit 92531d4 into master Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants