FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 571f95ca authored by Richard Stutt's avatar Richard Stutt
Browse files

Enhanced fallback data upload

parent c3b777e2
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,8 @@ unless($serverFailure) {
}
my $localOutputFolderName = $todayFolderPath."/".$jobIDString."_".$todayString."_0000";
if(!$serverFailure) {
#Clustering analysis:
......@@ -188,8 +190,6 @@ if(!$serverFailure) {
my $clusteringOutputFile = $clusteringOutputs[0];
#Uploading data:
my $localOutputFolderName = $todayFolderPath."/".$jobIDString."_".$todayString."_0000";
mkdir($localOutputFolderName) or handleError("ERROR: Unable to create the output upload staging folder ".$localOutputFolderName);
my $sourcesUploadFileName = $localOutputFolderName."/sources_".$todayString.".csv";
......@@ -229,7 +229,13 @@ if(!$serverFailure) {
if(!($lastSuccessfulClusteringOutputPath eq $clusterFailString)) {
unless($debugNoUpload) {
#Transfer the output to public server for others to be able to pull it down:
system("scp -i ".$coordinatorPath."/ssh_key_willow"." -r ".$lastSuccessfulClusteringOutputPath." willow.csx.cam.ac.uk:/var/www/html/Ethiopia/");
print "Transferring old output ".$staleClusteringDataWarningString." from folder ".$lastSuccessfulClusteringOutputPath."\n";
dircopy($lastSuccessfulClusteringOutputPath, $localOutputFolderName);
my $ret = system("scp -i ".$coordinatorPath."/ssh_key_willow"." -r ".$localOutputFolderName." willow.csx.cam.ac.uk:/var/www/html/Ethiopia/");
print "Transfer output: ".$ret."\n";
my $warningTimeStamp = getTimestampNow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment