Skip to content

Handle app rerun #3

@cleemansen

Description

@cleemansen
  1. Start WFI
  2. Restart WFI
  3. cargo-agent-python fails w/
2023-02-07 07:32:33 - init for /tmp/output_file
2023-02-07 07:32:42 - output-file change detected! <FileCreatedEvent: event_type=created, src_path='/tmp/output_file', is_directory=False>
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/opt/conda/lib/python3.10/site-packages/watchdog/observers/api.py", line 205, in run
    self.dispatch_events(self.event_queue)
  File "/opt/conda/lib/python3.10/site-packages/watchdog/observers/api.py", line 381, in dispatch_events
    handler.dispatch(event)
  File "/opt/conda/lib/python3.10/site-packages/watchdog/events.py", line 271, in dispatch
    self.on_any_event(event)
  File "/cargo-agent-python/src/cargo_agent_event_handler.py", line 23, in on_any_event
    movingpandas = self.moving_pandas_analyzer.read(path=event.src_path)
  File "/cargo-agent-python/src/analyzer/moving_pandas_analyzer.py", line 11, in read
    movingpandas = pd.read_pickle(path)
  File "/opt/conda/lib/python3.10/site-packages/pandas/io/pickle.py", line 208, in read_pickle
    return pickle.load(handles.handle)
EOFError: Ran out of input

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions