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

TransferActivity fails: attempts to process string as dict. #170

Open
tskluzac opened this issue May 29, 2024 · 3 comments
Open

TransferActivity fails: attempts to process string as dict. #170

tskluzac opened this issue May 29, 2024 · 3 comments
Assignees

Comments

@tskluzac
Copy link
Collaborator

tskluzac commented May 29, 2024

@renan-souza and I discovered a bug this morning on Defiant where a TransferActivity is invoked. The error we get specifically from the message_handler is

"""
2024-05-29 11:49:57,002 - zambeze.cli_agent - INFO - [mh] Flushing activity message to flowcept
2024-05-29 11:49:57,002 - zambeze.cli_agent - ERROR - 'str' object has no attribute 'origin_agent_id'
"""

It seems that we need to alter the processing to ensure that a TransferActivity is correctly parsed. Tests are needed to ensure this doesn't happen again.

The simplest way to reproduce this error is to generate a standalone transfer activity between any two endpoints, such as:

transfer = TransferActivity(
    name="Transfer end result Tyler's personal (non-work) computer",
    source_target=f"globus://{work_EP_ID}/Users/username/Desktop/tmp_zambeze/a.gif",
    dest_directory=f"globus://{personal_EP_ID}/Users/username/z_results",
    override_existing=False,
)

In other words, if you check out the imagemagick_globus example, the TransferActivity there will fail to execute.

@tskluzac tskluzac self-assigned this May 29, 2024
@wigging
Copy link
Collaborator

wigging commented May 31, 2024

Can you provide a basic example that produces this error?

@tskluzac
Copy link
Collaborator Author

tskluzac commented Jun 5, 2024

Can you provide a basic example that produces this error?

Yes, just added to the description now! Long-story short -- anything that uses a standalone TransferActivity (aka the last step of any workflow where you may want to Transfer data out... does not apply to implicit data transfers that happen throughout workflow execution).

@wigging
Copy link
Collaborator

wigging commented Jun 6, 2024

I'm just now digging into this. I noticed ShellActivity and TransferActivity inherit from Activity. Is it necessary to subclass this activity? Can the ShellActivity and TransferActivity be their own classes without having to subclass something?

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

No branches or pull requests

2 participants