dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [dao] Rerun does not take effect in case of failure

Open FrankZhang996 opened this issue 4 years ago • 4 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

After the task fails to run, it will be rerun according to the configured retryTimes, maxRetryTimes and retryInterval, but the configuration does not take effect.

What you expected to happen

Automatic rerun configuration takes effect

How to reproduce

modify class TaskInstance:

private int retryTimes; ---> private Integer retryTimes; private int maxRetryTimes; ---> private Integer maxRetryTimes; private int retryInterval; ---> private Integer retryInterval;

Anything else

mybatis's method updateById, if the field is null, it will not update, So we can't use basic types, The basic type will cause the value saved in the field in the database to be 0

Version

1.3.9

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

FrankZhang996 avatar Feb 22 '22 11:02 FrankZhang996

Hi:

  • Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to [email protected].

github-actions[bot] avatar Feb 22 '22 11:02 github-actions[bot]

How to reproduce modify class TaskInstance:

private int retryTimes; ---> private Integer retryTimes; private int maxRetryTimes; ---> private Integer maxRetryTimes; private int retryInterval; ---> private Integer retryInterval;

Hi @FrankZhang996 what your meaning about modifying class TaskInstance?

caishunfeng avatar Mar 17 '22 10:03 caishunfeng

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Apr 17 '22 00:04 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Apr 26 '22 00:04 github-actions[bot]