Explorar el Código

Remove tasks when no longer in use

Yentl Van Tendeloo hace 8 años
padre
commit
b00fd867e4
Se han modificado 3 ficheros con 4 adiciones y 1 borrados
  1. 2 0
      bootstrap/core_algorithm.alc
  2. 1 0
      wrappers/modelverse.py
  3. 1 1
      wrappers/modelverse_SCCD.py

+ 2 - 0
bootstrap/core_algorithm.alc

@@ -2439,6 +2439,8 @@ Void function user_function_skip_init(user_id : String):
 			// Exit by actually removing the user and decoupling it from all of its models
 			// Exit by actually removing the user and decoupling it from all of its models
 			// Restarting with the same user name will NOT grant you access to anything of the previous user with that same name
 			// Restarting with the same user name will NOT grant you access to anything of the previous user with that same name
 			// as the current user will have been deleted
 			// as the current user will have been deleted
+			output("Success")
+			sleep(5)
 			return !
 			return !
 		elif (cmd == "folder_create"):
 		elif (cmd == "folder_create"):
 			output(cmd_folder_create(single_input("Folder name?")))
 			output(cmd_folder_create(single_input("Folder name?")))

+ 1 - 0
wrappers/modelverse.py

@@ -57,6 +57,7 @@ def __run_new_modelverse(address, username, password, callback, model):
     login(username, password)
     login(username, password)
     callback(model)
     callback(model)
     exit_save(model)
     exit_save(model)
+    disconnect()
 
 
 def __run_new_modelverse_activity(address, username, password, taskname, pipe, callback):
 def __run_new_modelverse_activity(address, username, password, taskname, pipe, callback):
     init(address, taskname=taskname)
     init(address, taskname=taskname)

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Thu Nov 30 13:01:17 2017
+Date:   Fri Jan  5 08:28:00 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server