Skip to content

Commit

Permalink
AVRO_updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed May 26, 2023
1 parent 8ee297e commit e0ac19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SciXHarvester/API/harvester_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@ def persistent_connection(self, job_request, listener):

def initHarvester(self, request, context: grpc.aio.ServicerContext):
self.logger.info("Serving initHarvester request %s", request)
tstamp = datetime.now().timestamp()
self.logger.info(json.dumps(request.get("task_args")))
self.logger.info(
"Sending {} to Harvester Topic".format(
b" %s." % json.dumps(request.get("task_args")).encode("utf-8")
)
)
hash = hashlib.sha256(bytes(str(request), "utf-8")).hexdigest()
hash = hashlib.sha256(bytes(str(request) + str(tstamp), "utf-8")).hexdigest()
self.logger.info("{}".format(hash))

job_request = request
Expand Down

0 comments on commit e0ac19e

Please sign in to comment.