Skip to content
Snippets Groups Projects

Dev

Merged Petar Hristov requested to merge dev into master
3 files
+ 21
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -125,9 +125,28 @@ public class Deployer
// Get the hash of the currently deployed graph and compare it with the hash of the graph to be deployed
files.ForEach((path) => currentRun.TryAdd(graphId, HashUtil.GetFileHash(path)));
var deployedGraph = deployedGraphsList.FirstOrDefault((g) => g.Uri == graphId);
var hasChanged = deployedGraph is null || !deployedGraph.FileHashes.Contains(currentRun[graphId]) || opts.Redeploy;
if(hasChanged)
{
_logger.LogDebug("The graph hase changed");
} else
{
_logger.LogDebug("The graph has not changed");
}
if(deployedGraph is null)
{
_logger.LogDebug("deployedGraph is null");
} else {
_logger.LogDebug("Deployed hash: {hash}", string.Join(',', deployedGraph.FileHashes));
}
_logger.LogDebug("Incoming hash: {hash}", currentRun[graphId]);
_logger.LogDebug("Redeploy: {redeploy}", opts.Redeploy);
// Deploy the graph if it has changed or if the redeploy flag is set
if (hasChanged)
{
Loading