You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 samewhere(status: 'Fail')
is what I'm leaning towards.The text was updated successfully, but these errors were encountered: