vsoch / forward

Port Forwarding Utility
https://vsoch.github.io/lessons/sherlock-singularity/
MIT License
52 stars 27 forks source link

Exponential backoff #5

Closed kcgthb closed 6 years ago

kcgthb commented 6 years ago

Hi @raphtown,

Could I suggest to implement some sort of exponential backoff here: https://github.com/drorlab/forward/blob/f6951a4c4ab8f2ed4fe711bbfef7ab1b36316051/start.sh#L48-L53 instead of querying the queue every second? That will likely be better for the scheduler for cases where the job is not dispatched right away.

Other than that, great job! And thanks for providing those scripts. They will certainly be of use to many users on Sherlock.

vsoch commented 6 years ago

@kcgthb this is a good idea, I'll do a PR and add the suggested change.

raphtown commented 6 years ago

Addressed by #8