> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1917.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Comment puis-je journaliser un artifact dans un run existant ?

Il est parfois nécessaire d’indiquer qu’un artifact est la sortie d’un run enregistré précédemment. Dans ce cas, réinitialisez l’ancien run et journalisez de nouveaux artifacts comme suit :

```python theme={null}
with wandb.init(id="existing_run_id", resume="allow") as run:
    artifact = wandb.Artifact("artifact_name", "artifact_type")
    artifact.add_file("my_data/file.txt")
    run.log_artifact(artifact)
```

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/fr/support/models/tags/artifacts)</Badge>
