Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update electron statuses for SSHExecutor #41

Open
2 tasks
kessler-frost opened this issue Sep 16, 2022 · 0 comments
Open
2 tasks

Update electron statuses for SSHExecutor #41

kessler-frost opened this issue Sep 16, 2022 · 0 comments

Comments

@kessler-frost
Copy link
Member

kessler-frost commented Sep 16, 2022

Once separation of workflow and electron statuses is done, the electron level statuses need to be updated to accommodate executor dependent statuses. In this case the following status definitions will be updated:

  • REGISTERING - Connection established to the remote machine and files are being transferred

  • RUNNING - Execution invoked on the remote machine

  • COMPLETING - Results files are being retrieved, temporary files are being deleted, and the connection is being closed

The classes for these statuses will need to be created similar to status classes defined in covalent/_shared_files/statuses.py. Then, in order to save the status, one can do:

...

status_store = task_metadata["status_store"]
status_store.save(CustomStatus())

...

This will propagate the status updation to the DB.

Acceptance Criteria:

  • Above mentioned statuses need to be updated inside the local executor
  • Tests need to be added to verify if those definitions are as expected
@kessler-frost kessler-frost mentioned this issue Oct 3, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant