-
Notifications
You must be signed in to change notification settings - Fork 33
Send Weekly Surveys #441
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
Send Weekly Surveys #441
Conversation
@maxceem please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to test sending survey locally, though I'm getting errors like these
do you have some idea what could be the reason? I'm using the config from the validation guide.
Also, regarding this update in code I'm not sure how this would help, as for me to fix this issue "As per logs in Run 02, encountered "ERROR : Error : socket hang up" during the sending of first survey. There's no exception handler and theres no way to recover (other than to restart or reset cron)."
we have to wrap each of await partiallyUpdateWorkPeriod
inside additional try {} catch () {}
so we catch any error which happens during updating work period too.
@maxceem can we change the date format to |
@yoution actually this format we have been already using for such surveys, so I don’t think we can change it. Any issues with it? |
you can change to |
Thanks, I’ll check tomorrow morning using this format, though ideally we need to use existent format. |
|
@maxceem please ignore the format error, maybe the |
@maxceem for |
@yoution your config you shared above helped me, thanks! (btw, I've removed it from the comment) The only one thing left: the app should not crash is some error happens. async function partiallyUpdateWorkPeriod (currentUser, id, data) {
throw new Error('some error during WP update')
return updateWorkPeriod(currentUser, id, data)
} So what should be done to prevent this I think:
|
@maxceem for 1. why did I change the code, because when error happened in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick updates @yoution all works good now.
@maxceem please merge