question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create a deepcopy of TaskSpec init params

See original GitHub issue

data, and meta params in the TaskSpec constructor are dictionaries: https://github.com/ploomber/ploomber/blob/c87c60db954f72309b1e421a5399f9f6a426e5fe/src/ploomber/spec/taskspec.py#L166

Since both of them are modified inside the class, we should call copy.deepcopy to prevent side-effects outside the class

https://github.com/ploomber/ploomber/blob/master/src/ploomber/spec/taskspec.py#L166

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
edublancascommented, Oct 19, 2021

done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

copy — Shallow and deep copy operations — Python 3.11.1 ...
If the __deepcopy__() implementation needs to make a deep copy of a component, it should call the deepcopy() function with the component as...
Read more >
Tekton Pipelines
params - Specifies the Parameters that the Pipeline requires. workspaces - Specifies a set of Workspaces that the Pipeline requires. tasks : name...
Read more >
Pipelines | CI/CD | OpenShift Container Platform 4.11
Enter a non-empty array of static values or variables such as parameters, ... taskSpec: workspaces: - name: source description: The workspace to create...
Read more >
Tekton - Jerome Boyer's Personal Site
tasks: - name: fetch-source taskRef: name: git-clone kind: ClusterTask workspaces: - name: output workspace: build-ws params: - name: url value: ...
Read more >
Chapter 4. Pipelines OpenShift Container Platform 4.8
A new Dockerfile is added for pullrequest-init for build-base image ... 7 - name: commit value: $(tasks.clone-app-repo.results.commit) taskSpec: 8 params: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found