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

Added windows task delay up to 30s to improve job resiliency #2864

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

perithompson
Copy link
Contributor

Adds a randomdelay flag to the windows scheduled job to allow the task to run slightly after startup. Running directly At Startup can include a failure to initialise, where this delay allows a slight leeway to run a little after.
Fixes: #2826

Signed-off-by: Peri Thompson [email protected]

Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor

/skip-all

@codecov-commenter
Copy link

Codecov Report

Merging #2864 (f1e5504) into main (8f31b63) will decrease coverage by 20.65%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2864       +/-   ##
===========================================
- Coverage   61.54%   40.89%   -20.66%     
===========================================
  Files         284      158      -126     
  Lines       23493    19562     -3931     
===========================================
- Hits        14458     7999     -6459     
- Misses       7481    10805     +3324     
+ Partials     1554      758      -796     
Flag Coverage Δ
kind-e2e-tests ?
unit-tests 40.89% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/ovs/openflow/default.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/util/runtime/runtime.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/agent/cniserver/pod_configuration_linux.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/ovs/openflow/logs.go 9.52% <0.00%> (-90.48%) ⬇️
pkg/apis/controlplane/register.go 0.00% <0.00%> (-90.00%) ⬇️
pkg/agent/nodeportlocal/k8s/annotations.go 0.00% <0.00%> (-83.88%) ⬇️
pkg/agent/agent_linux.go 0.00% <0.00%> (-80.00%) ⬇️
pkg/agent/client.go 0.00% <0.00%> (-77.42%) ⬇️
pkg/ovs/ovsconfig/ovs_client_linux.go 0.00% <0.00%> (-76.93%) ⬇️
pkg/flowaggregator/certificate.go 0.00% <0.00%> (-76.58%) ⬇️
... and 228 more

Copy link
Contributor

@lzhecheng lzhecheng left a comment

Choose a reason for hiding this comment

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

LGTM

It seems 30s is a common practice for New-JobTrigger:
https://serverfault.com/questions/820682/powershell-scheduled-job-not-running-at-startup

@antoninbas antoninbas merged commit f415bd7 into antrea-io:main Oct 5, 2021
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.

Add random delay to windows startup script
4 participants