-
Notifications
You must be signed in to change notification settings - Fork 17
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
Incorrect status reported on deployment #48
Comments
Thanks for the report, I'll look into it. |
What version of schedex are you using @drmibell ? |
Good question. I believe it was v1.5.1 when I noticed this. I haven't checked with the current version. |
I just checked, and I see the same behavior with v1.6.2. |
Hi @drmibell. I've put a log statement in whenever we set the status so you can see the behaviour when starting and re-deploying:
As you can see it's called once on NR start. It's then called when stopping. I wonder if it's the stopping message that's confusing things? |
I think you are on to something. HOWEVER, why send status when stopping and why that particular message? More important, in the flow I posted,
the |
Schedex cleans up when the node is stopped. The cleanup code is the suspend code, it's the same thing. I've tweaked it here so it doesn't send the message on shutdown but the problem with the status node remains. I'll be honest, I'd never used the status node until now. Wonder if there's a status length constraint? |
Nope - no restrictions. Looks like it's a deployment order issue. I think when schedex is deployed and immediately updates the status, the status node isn't deployed, so it can't handle the status change. Things work as intended if I delay the status update in schedex by a second. That's a hack of course, I'm not sure what the actual solution is just yet. |
Your hack may be the only answer, at least for now. I've looked at a couple of other nodes that display status when first deployed, and the |
I've not pushed the code @drmibell. It does sound like one for the NR devs. |
When the node is first deployed, the status shown in the editor under the node is correct, but that caught by the
status
node is not. You can see this in the flow posted in the NR Forum at Show Schedex Time on Dashboard. It's not clear how the status caught by thestatus
node could be different from the one shown in the editor, but that seems to be happening.The text was updated successfully, but these errors were encountered: