Skip to content

Commit

Permalink
Version 0.8.38
Browse files Browse the repository at this point in the history
Fixes #246 -- thanks @alexpanas!
  • Loading branch information
jhuckaby committed Dec 20, 2019
1 parent 3cfc7ef commit c75664f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions bin/storage-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,12 @@ function import_data(file) {
rl.on('close', function() {
// end of input stream
var complete = function() {
print( "\nImport complete. " + count + " records imported.\nExiting.\n\n" );

storage.shutdown( function() { process.exit(0); } );
// finally, delete state so cronicle recreates it
storage.delete( 'global/state', function(err) {
// ignore error here, as state may not exist yet
print( "\nImport complete. " + count + " records imported.\nExiting.\n\n" );
storage.shutdown( function() { process.exit(0); } );
});
};

// fire complete on queue drain
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.8.37",
"version": "0.8.38",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit c75664f

Please sign in to comment.