setta 0.0.14.dev5__py3-none-any.whl → 0.0.14.dev6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
setta/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.14.dev5"
1
+ __version__ = "0.0.14.dev6"
setta/tasks/utils.py CHANGED
@@ -123,21 +123,43 @@ class SettaInMemoryFnSubprocess:
123
123
 
124
124
  elif msg_type == "call" or msg_type == "call_with_new_exporter_obj":
125
125
  fn_name = msg["fn_name"]
126
+ try:
127
+ logger.debug(
128
+ f"Subprocess about to process message for {fn_name}"
129
+ )
130
+ # Start a worker for this function if needed
131
+ self._start_worker_for_fn(
132
+ fn_name,
133
+ fn_workers,
134
+ fn_message_queues,
135
+ fns_dict,
136
+ cache,
137
+ lock,
138
+ send_lock,
139
+ self.child_conn,
140
+ )
126
141
 
127
- # Start a worker for this function if needed
128
- self._start_worker_for_fn(
129
- fn_name,
130
- fn_workers,
131
- fn_message_queues,
132
- fns_dict,
133
- cache,
134
- lock,
135
- send_lock,
136
- self.child_conn,
137
- )
138
-
139
- # Add the message to the function's queue
140
- fn_message_queues[fn_name].put(msg)
142
+ # Add the message to the function's queue
143
+ fn_message_queues[fn_name].put(msg)
144
+ except Exception as e:
145
+ logger.error(
146
+ f"Error processing message for {fn_name}: {str(e)}"
147
+ )
148
+ traceback.print_exc()
149
+ # Make sure to send an error response, so the parent doesn't hang
150
+ with send_lock:
151
+ try:
152
+ self.child_conn.send(
153
+ {
154
+ "status": "error",
155
+ "error": str(e),
156
+ "messageType": None,
157
+ }
158
+ )
159
+ except:
160
+ logger.error(
161
+ "Failed to send error response back to parent"
162
+ )
141
163
 
142
164
  except Exception as e:
143
165
  traceback.print_exc()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: setta
3
- Version: 0.0.14.dev5
3
+ Version: 0.0.14.dev6
4
4
  Summary: Python without the donkeywork.
5
5
  Home-page: https://setta.dev
6
6
  Author: Kevin Musgrave, Jeff Musgrave
@@ -1,4 +1,4 @@
1
- setta/__init__.py,sha256=dRhS5q6Sal0dV1Xm-wF5fYy5g9gBiwNKZ8YDlE48FV4,28
1
+ setta/__init__.py,sha256=Au0i6BplPktnDDP961GPD0r_9xhbmzMtWXB1881eIRw,28
2
2
  setta/server.py,sha256=q4w9WG7SuLxwYtgXUCQyLt7t_HLmQV4y5abqvm7-uEA,4861
3
3
  setta/start.py,sha256=5sMZ7WH3KV9Q0v186PsaYqsWOz7hebyrpXbBOp9wQww,3589
4
4
  setta/cli/__init__.py,sha256=UxZG_VOMuF6lEBT3teUgTS9ulsK3wt3Gu3BbAQiAmt8,47
@@ -231,7 +231,7 @@ setta/static/seed/examples/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7x
231
231
  setta/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
232
232
  setta/tasks/task_runner.py,sha256=2bykjmSDPZ6lFqeaKTFYPN1eqHtrKDIZJpIi4PztL9Q,1232
233
233
  setta/tasks/tasks.py,sha256=o8YVQvEW3uzhMTF38HFk_IgHVe4Wyye7ybb7QZm_-TQ,11695
234
- setta/tasks/utils.py,sha256=8MuTZ7vlVCJXkrLZ6Wc1KB4fkucjsb7fHhukeMW9_TM,16629
234
+ setta/tasks/utils.py,sha256=GnFnNVhvXxzoIZtsvhDip12BMKVd73S3UCHdm7ZP01s,17786
235
235
  setta/tasks/fns/__init__.py,sha256=JhGzzQGaT9BWtF3pOmguh6pzIF9kdG3jdDNLyYZ2w7g,461
236
236
  setta/tasks/fns/codeAreaAutocomplete.py,sha256=gJ5JbjkWDyTothr-UF-YlOxrbVzj2iyOVK7XD3lfhSQ,6416
237
237
  setta/tasks/fns/codeAreaFindTemplateVars.py,sha256=vD9rY8VNPavv6VKa1bnxRPPRDNvFQy6mPIZRl-_3GnY,3708
@@ -252,9 +252,9 @@ setta/utils/generate_new_filename.py,sha256=KBLX6paDmTvXR-027TpqQkfijIXc7mCfhen-
252
252
  setta/utils/section_contents.py,sha256=V2HQPik6DfSXw4j7IalbP5AZ3OEGCbtL5ub3xL-Q_Qo,4141
253
253
  setta/utils/utils.py,sha256=KjzcvgM3Ab3IcE8vaWYtgBpwzPLKg0LmblnHLoYZJHM,9164
254
254
  setta/utils/websocket_manager.py,sha256=MBIMI8xxOFQF4lT3on4pupi1ttEWXdWPV4fI2YP_UJU,3925
255
- setta-0.0.14.dev5.dist-info/LICENSE,sha256=us9fuCq9wmiZVzayjKxNZ2iJYF6dROe0Qp57ToCO7XU,11361
256
- setta-0.0.14.dev5.dist-info/METADATA,sha256=WuaVIRGFo3c2OFa0v-oEEm6WRybmN8EBfGvlLQCe8UY,7517
257
- setta-0.0.14.dev5.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
258
- setta-0.0.14.dev5.dist-info/entry_points.txt,sha256=P0qCESy9fWF2q1EQ9JufGldCSnPHplDPn8J6Bgk5hB0,42
259
- setta-0.0.14.dev5.dist-info/top_level.txt,sha256=8G4lmRzVOnJ11_DescPVHE6MQZH-o06A0nGsDDV2ngY,6
260
- setta-0.0.14.dev5.dist-info/RECORD,,
255
+ setta-0.0.14.dev6.dist-info/LICENSE,sha256=us9fuCq9wmiZVzayjKxNZ2iJYF6dROe0Qp57ToCO7XU,11361
256
+ setta-0.0.14.dev6.dist-info/METADATA,sha256=UZ7Aa4y8MuovjaCfTVklgMKW9gokelnp1mWFNeLKba8,7517
257
+ setta-0.0.14.dev6.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
258
+ setta-0.0.14.dev6.dist-info/entry_points.txt,sha256=P0qCESy9fWF2q1EQ9JufGldCSnPHplDPn8J6Bgk5hB0,42
259
+ setta-0.0.14.dev6.dist-info/top_level.txt,sha256=8G4lmRzVOnJ11_DescPVHE6MQZH-o06A0nGsDDV2ngY,6
260
+ setta-0.0.14.dev6.dist-info/RECORD,,