Skip to content

Commit

Permalink
fix: register renderingMeta needed for external Jobs in SCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Jul 25, 2024
1 parent 51692ae commit 081e845
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import { protoMetadata as commandInterfaceMeta, CommandInterfaceServiceDefinitio
import {
protoMetadata as reflectionMeta
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/grpc/reflection/v1alpha/reflection.js';
import {
protoMetadata as renderingMeta
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/rendering.js';
import { ServerReflectionService } from 'nice-grpc-server-reflection';
import { BindConfig } from '@restorecommerce/chassis-srv/lib/microservice/transport/provider/grpc/index.js';
import { HealthDefinition } from '@restorecommerce/rc-grpc-clients/dist/generated-server/grpc/health/v1/health.js';
Expand All @@ -34,7 +37,8 @@ registerProtoMeta(
schedulingMeta,
commandInterfaceMeta,
reflectionMeta,
resourceBaseMeta // needed for `deleteJobs` event - io.restorecommerce.resourcebase.DeleteRequest
resourceBaseMeta, // needed for `deleteJobs` event - io.restorecommerce.resourcebase.DeleteRequest
renderingMeta // needed for encoding and decoding of render-request messages (used for external jobs in SCS)
);

class JobsCommandInterface extends chassis.CommandInterface {
Expand Down

0 comments on commit 081e845

Please sign in to comment.