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

Scheduler (client and server): message tweaks #3402

Merged
merged 1 commit into from
Jan 2, 2020
Merged

Conversation

RichardHaselgrove
Copy link
Contributor

client - show requested delay always (why hide it?)
server - ignore residual delay from previous RPC

Fixes #3375

client - show requested delay always (why hide it?)
server - ignore residual delay from previous RPC
ok_to_send_work = false;
log_messages.printf(MSG_NORMAL,
"Not sending work - last request too recent, please wait: %f\n", t_left
"Not sending work - last request too recent, please wait: %f\n", config.min_sendwork_interval
Copy link
Member

Choose a reason for hiding this comment

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

This means that user will always see the, let's say, 'default' delay interval even if there is less time left before he can do next request.
E.g.
There is a default delay of 60 sec.
User waits 59 seconds, make another request and see the message that he should wait for 60 seconds more while in fact he had to wait only 1 second before doing next request. Isn't this misleading a little bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

he had to wait only 1 second

That's the problem - he didn't. The 1-second message came in an RPC, and the sending of that RPC re-started the timer. He does have to wait the full 60 seconds.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I see. No questions then

@AenBleidd
Copy link
Member

I'm ok with the change and plan to merge in in 4 days (on Friday) if there will be no objections before

@AenBleidd AenBleidd merged commit 66b4071 into master Jan 2, 2020
@AenBleidd AenBleidd added this to the Client Release 7.16 milestone Jan 28, 2020
@RichardHaselgrove RichardHaselgrove deleted the RH_sched_delay branch April 15, 2020 18:51
RichardHaselgrove added a commit that referenced this pull request Apr 15, 2020
to match other scheduler operations (not sched_op_debug, as before)

Another tweak to #3402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Revisit 'project requested delay' messages
2 participants