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
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
A "save" parameter was added to enable unit testing of the various transition functions:
executeStateByJobDoc
startProcessingFlowByJobDoc
retryJobAtStateByJobDoc
resumeWaitingJobByJobDoc
transition
These functions should be refactored to remove all document updates, and only mutate and return the job object in memory. Corresponding functions should be added which calls these functions, and save the result (resume and retry already partially implement this). The "save" parameter can then be removed.
This will allow the unit tests to simply call the mutator functions without the "save" parameter, and the application code to call the function which commits mutated job document.
The text was updated successfully, but these errors were encountered:
A "save" parameter was added to enable unit testing of the various transition functions:
These functions should be refactored to remove all document updates, and only mutate and return the job object in memory. Corresponding functions should be added which calls these functions, and save the result (resume and retry already partially implement this). The "save" parameter can then be removed.
This will allow the unit tests to simply call the mutator functions without the "save" parameter, and the application code to call the function which commits mutated job document.
The text was updated successfully, but these errors were encountered: