Skip to content

Cml runner long job - #583

Merged
DavidGOrtega merged 14 commits into
masterfrom
cml-runner/long-job
Jul 5, 2021
Merged

DavidGOrtega merged 14 commits into
masterfrom
cml-runner/long-job

Conversation

@DavidGOrtega

@DavidGOrtega DavidGOrtega commented Jun 8, 2021 •

Copy link
Copy Markdown
Contributor

Introduces restart all the workflows with jobs not yet finished.

  • Adds restart workflows with tracked and unfinished jobs
  • Solves 72 hours max time in Github
  • Refactors the code in cml parseRunnerLog and cml-runner shutdown
  • solves unknown bug in logs due to incomplete string comparison success:

closes #174
closes #208 partially?

@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 8, 2021 16:03 Inactive
@DavidGOrtega

DavidGOrtega commented Jun 8, 2021 •

Copy link
Copy Markdown
Contributor Author

#208 is pending because:

  • We might find desirable to still handle timeouts
  • In GH is near imposible to know if the job is canceled due to timeout, at least from the logs.

The only solution (and actually the original one) is to control the timer to not reach the MAX GH timeout time and restart a few min before reach it. This would solve the max time limit in GH respecting every timeout defined by the users.

What do you think?

@casperdcl @0x2b3bfa0 @Suor @mnrozhkov @dmpetrov

@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 8, 2021 16:10 Inactive
@DavidGOrtega
DavidGOrtega marked this pull request as draft June 8, 2021 16:10
@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 8, 2021 16:33 Inactive
@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 8, 2021 17:03 Inactive
@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 8, 2021 17:06 Inactive
@casperdcl
casperdcl marked this pull request as ready for review June 8, 2021 18:46
Comment thread bin/cml-runner.js Resolved
Comment thread README.md Resolved
Comment thread bin/cml-runner.js Resolved
@casperdcl

Copy link
Copy Markdown
Contributor

we should also maybe add an option (default true) to auto-post a warning comment saying "restarting due to timeout?"

@DavidGOrtega

Copy link
Copy Markdown
Contributor Author

we should also maybe add an option (default true) to auto-post a warning comment saying "restarting due to timeout?"

I liked this idea and has been explored before but the runner needs to know the SHA. Aside that I think that what we should do is do proper logging #22 That way they could setup the logging config and being able to log everything and this would also be nice for DVC viewer

@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 18, 2021 11:34 Inactive

@casperdcl casperdcl left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it should be configurable (--retry-timeout, similar to --idle-timeout) - here's the gist...

Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
@DavidGOrtega
DavidGOrtega temporarily deployed to internal June 18, 2021 15:04 Inactive
@0x2b3bfa0

0x2b3bfa0 commented Jun 22, 2021 •

Copy link
Copy Markdown
Member

@DavidGOrtega, do you want a release manager review? They're free this week!

@DavidGOrtega

Copy link
Copy Markdown
Contributor Author

@0x2b3bfa0 please!

@0x2b3bfa0
0x2b3bfa0 self-requested a review June 23, 2021 10:34
Comment thread src/drivers/gitlab.js Resolved
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal June 30, 2021 20:07 Inactive
Comment thread src/drivers/github.js Resolved
Comment thread bin/cml-runner.js Resolved
Comment thread bin/cml-runner.js Resolved
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal June 30, 2021 23:08 Inactive
@0x2b3bfa0
0x2b3bfa0 force-pushed the cml-runner/long-job branch from 496070a to eddeae9 Compare June 30, 2021 23:52
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal June 30, 2021 23:53 Inactive
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal July 1, 2021 00:05 Inactive
@DavidGOrtega
DavidGOrtega temporarily deployed to internal July 4, 2021 21:34 Inactive
@DavidGOrtega
DavidGOrtega force-pushed the cml-runner/long-job branch from 1d6e728 to 3e6545f Compare July 4, 2021 23:44
@DavidGOrtega
DavidGOrtega temporarily deployed to internal July 4, 2021 23:44 Inactive
@DavidGOrtega
DavidGOrtega temporarily deployed to internal July 5, 2021 00:50 Inactive

This branch was previously deployed

1 inactive deployment
internal — 96743a4d Deployed Jul 5, 2021 by DavidGOrtega
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.

Workflow timeout a better scenario Spot instances- Runner must be able to restart workflow

3 participants