You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseRuntimeError('Cannot specify both --skip-unsafe and --allow-unsafe')
@@ -107,6 +108,7 @@ def __init__(self,
107
108
self._dev_no_sleeps=dev_no_sleeps
108
109
self._dev_no_build=dev_no_build
109
110
self._dev_no_metrics=dev_no_metrics
111
+
self._dev_flow_timetravel=dev_flow_timetravel
110
112
self._uri=uri
111
113
self._uri_type=uri_type
112
114
self._original_filename=filename
@@ -1150,7 +1152,12 @@ def run_flows(self):
1150
1152
self.__ps_to_read+=ps_to_read_tmp# will otherwise be discarded, bc they confuse execption handling
1151
1153
self.check_process_returncodes()
1152
1154
flow_id+=1
1155
+
1156
+
# pylint: disable=broad-exception-caught
1153
1157
exceptBaseExceptionasexc:
1158
+
ifself._dev_flow_timetravel: # Exception handling only if explicitely wanted
1159
+
raiseexc
1160
+
1154
1161
print('Exception occured: ', exc)
1155
1162
print(TerminalColors.OKCYAN, '\nWhat do you want to do?\n1 -- Restart current flow\n2 -- Restart all flows\n3 -- Reload containers and restart flows\n0 / CTRL+C -- Abort', TerminalColors.ENDC)
parser.add_argument('--full-docker-prune', action='store_true', help='Stop and remove all containers, build caches, volumes and images on the system')
1513
1522
parser.add_argument('--docker-prune', action='store_true', help='Prune all unassociated build caches, networks volumes and stopped containers on the system')
1523
+
parser.add_argument('--dev-flow-timetravel', action='store_true', help='Allows to repeat a failed flow or timetravel to beginning of flows or restart services.')
1514
1524
parser.add_argument('--dev-no-metrics', action='store_true', help='Skips loading the metric providers. Runs will be faster, but you will have no metric')
1515
1525
parser.add_argument('--dev-no-sleeps', action='store_true', help='Removes all sleeps. Resulting measurement data will be skewed.')
1516
1526
parser.add_argument('--dev-no-build', action='store_true', help='Checks if a container images are already in the local cache and will then not build it. Also doesn\'t clear the images after a run. Please note that skipping builds only works the second time you make a run.')
0 commit comments