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

Add restart subcommand #314

Closed
yottahmd opened this issue Sep 2, 2022 · 1 comment · Fixed by #318
Closed

Add restart subcommand #314

yottahmd opened this issue Sep 2, 2022 · 1 comment · Fixed by #318
Assignees

Comments

@yottahmd
Copy link
Collaborator

yottahmd commented Sep 2, 2022

The user should be able to restart a DAG execution. The restart command stops the current execution and starts the DAG after a certain pause time for cleanup. If the DAG is not running, it just starts the DAG.

dagu restart ./dags/task.yaml

The cleanup time for restart should be configured in the DAG definition. The default value is 0.

RestartWaitSec: 30
@yottahmd yottahmd self-assigned this Sep 2, 2022
@yottahmd
Copy link
Collaborator Author

yottahmd commented Sep 6, 2022

Need to add restart key to schedule field also:

schedule:
  start: "0 8 * * *"
  restart: "0 12 * * *"
  stop: "0 23 * * *"

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 a pull request may close this issue.

1 participant