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

Allow to set the priority on a job level #9836

Merged
merged 1 commit into from
Jun 30, 2022
Merged

Allow to set the priority on a job level #9836

merged 1 commit into from
Jun 30, 2022

Conversation

TheOneRing
Copy link
Member

Issue: #9832

@TheOneRing TheOneRing requested a review from a team June 30, 2022 10:54
@TheOneRing TheOneRing added this to the 2.10.3 milestone Jun 30, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@fmoc fmoc left a comment

Choose a reason for hiding this comment

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

Doesn't seem like priorities have changed?

Edit: found it.

@@ -94,6 +96,8 @@ GETFileJob::GETFileJob(AccountPtr account, const QUrl &url, QIODevice *device,
, _directDownloadUrl(url)
, _hasEmittedFinishedSignal(false)
{
// Long downloads must not block non-propagation jobs.
setPriority(QNetworkRequest::LowPriority);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe have a common private constructor that implements this call? Redundant code is not ideal.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we already have on master

@TheOneRing TheOneRing merged commit 3b1412d into 2.10 Jun 30, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/priority branch June 30, 2022 11:49
@gabi18 gabi18 mentioned this pull request Jul 13, 2022
56 tasks
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.

None yet

2 participants