[Feature Request] Allow to register checksum with the worker
Is your feature request related to a problem? Please describe.
I was working on rollback strategies for the workflow after bad deployment. One of the strategy is:
if(Workflow::getInfo()->binaryChecksum === "checksum" || Workflow::now() < $deploymentDateTime) {
// handle workflow code which are failing here
} else {
// changes for new workflow
}
I would like this checksum to be associated with the worker. So whenever a worker is deployed, I would like to set its checksum to with the current git ref/commit. The way to do it is: worker.SetBinaryChecksum("commit-hash") . But I could not find anything with the current implementation of the worker to set its checksum. It would be a handy tool for rolling back deployments.
Describe the solution you'd like
I want to be to set the binary checksum with the worker using the SetBinaryChecksum method which is currently not present.
Hey @manishrocksag 👋🏻 I guess you're looking for the Workflow Versioning: https://legacy-documentation-sdks.temporal.io/php/versioning, am I right?