Skip to content

Conversation

@steveahnahn
Copy link
Contributor

@steveahnahn steveahnahn commented Sep 30, 2025

Problem

Fix ValueError: dictionary update sequence element #0 has length 1; 2 is required error when using CloudRunExecuteJobOperator with deferrable=True. The issue occurred because XCom data serialization in deferred execution sometimes stores logging link data as strings instead of dictionaries, causing BaseGoogleLink.get_config() to fail when attempting dict updates

Solution

Modified BaseGoogleLink.get_config() to handle both string and dictionary XCom values

Testing

Added comprehensive unit test test_get_config_with_string_xcom_value covering:
- String XCom values
- Dictionary XCom values
- None XCom values

Related Issue:

closes: #55996

@MaksYermak
Copy link
Contributor

Hello @steveahnahn !
We already have a PR in the community #55821 which fixes this ValueError error

@steveahnahn
Copy link
Contributor Author

Thanks @MaksYermak for the info, closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CloudRunExecuteJobOperator in deferred mode shows error in log: ValueError: dictionary update sequence element #0 has length 1; 2 is required

2 participants