-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Make offchain worker calls more future proof. #4618
Conversation
Maybe we should add some variant of |
@@ -139,6 +140,8 @@ impl<Client, Storage, Block> OffchainWorkers< | |||
}); | |||
futures::future::Either::Left(runner.process()) | |||
} else { | |||
let help = "Consider turning off offchain workers if they are not part of your runtime."; |
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.
Problem is that validators need the offchain api, otherwise they don't send the heartbeat transactions. So, turning it off is not the best idea?
CI failing, too. |
i don't see how not authoring when off-chain workers are not present helps. off-chain workers are designed to not be required for authoring. |
Yeah I know, but still we currently have some connection. At least to my understanding. Not all validators could produce a block, but could also not execute the offchain worker to send the heartbeat. If you are not selected and not send the tx you are slashed. Sounds not like such an optional feature. In the future when we got offchain phragmen, it could probably be even worse? Or would we switch to on-chain phragmen when nobody provided an offchain one? |
Wouldn't then disabling authoring if you can't run offchain workers be even worse? Currently if you can't run offchain workers you at least have some chance of producing blocks, with the change you are proposing it would stall completely. I suppose a good idea for validators now would be to monitor the node logs for error messages like these and then take some immediate actions. Perhaps better to somehow standardize critical messages reporting? I'm thinking about even posting to some URL given in CLI, so that you can configure IFTTT for instance to send you an email (this wouldn't require any programming knowledge). |
BTW. CI issue magically resolved, I guess the failure was just spurious. |
Yeah, I restarted it a second time. |
Yeah, you are right with the authoring. I also thought about reporting, maybe we could also send some standardized message to telemetry. |
This will help debugging possible issues when we migrate to future versions.
v3
.