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

ProcessLog implicit fail should update the DB :status field. #1

Open
duffyjp opened this issue Aug 17, 2020 · 0 comments
Open

ProcessLog implicit fail should update the DB :status field. #1

duffyjp opened this issue Aug 17, 2020 · 0 comments

Comments

@duffyjp
Copy link
Owner

duffyjp commented Aug 17, 2020

The status getter is customized to return "Fail" if a process has exceeded 24 hours. The :status field remains "Started" however, so querying for failed records is not straight forward.

The 24 hour rule is arbitrary, and should probably belong in the host app's customization if anywhere.

We could write a more complex :failed scope, but the status field wouldn't be updated. A class method that does the field maintenance then executes the same where(status: 'Fail') is what I'm leaning towards.

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