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

Track number of executions in Run record #79

Open
fractaledmind opened this issue Jul 28, 2023 · 0 comments
Open

Track number of executions in Run record #79

fractaledmind opened this issue Jul 28, 2023 · 0 comments

Comments

@fractaledmind
Copy link
Owner

It is useful to know if a Run is in a retry or on the first run. For example, imagine a step method that makes an API call to create an external resource. That step method could fail during the "execution" stage such that the API call was successful, but the run errors while trying to close the transaction or update the Run record. In this case, the job will be retried and re-run this step method.

We can add another API call as a guard to check if the resource already exists in the external system, but on the first run of the job, this is guaranteed not to be the case (presuming the job is setup properly to be idempotent). We could save the API call on the first run and only check in subsequent runs, if we knew whether the run was a first run or not.

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

No branches or pull requests

1 participant