Skip to content

Conversation

@Vitor-Avila
Copy link
Contributor

This PR implements the remaining feedback from #331 + enforces the progress is written to the log file continuously (as opposed to just at the end) so that if the command is aborted/cancelled progress is stored.

if logs.get("assets")
else set()
)
client = SupersetClient(baseurl=URL(ctx.obj["INSTANCE"]), auth=ctx.obj["AUTH"])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting a too-many-locals complain, so did this to avoid adding the skip check

if logs:
write_logs_to_file(logs)
logs.pop(log_type.value, None)
if any(logs.values()):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Vitor-Avila Vitor-Avila merged commit b460d27 into main Jan 14, 2025
5 checks passed
@Vitor-Avila Vitor-Avila deleted the chore/always-write-to-log branch January 14, 2025 22:38
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 this pull request may close these issues.

3 participants