Jackson Nguyen
01/14/2025, 12:05 AMMarvin
01/14/2025, 12:06 AMArtifact.get
class method. For updating, if you are working with progress artifacts specifically, you can use the update_progress_artifact()
function which updates the artifact in place without versioning it.
For more detailed information, you can refer to the Prefect Artifacts documentation.
If you're interested in the code structure, the top-level API of Prefect includes functions like flow
, task
, and get_client
, which might be useful depending on how you wish to interact with the artifacts programmatically.
If you need further assistance or specific examples, feel free to ask!Jackson Nguyen
01/14/2025, 12:08 AMMarvin
01/14/2025, 12:08 AMArtifact.get()
function is atomic. Generally, atomicity in operations means that the operation is completed entirely or not at all, without any intermediate states being visible.
In the absence of explicit documentation stating that Artifact.get()
is atomic, it is prudent to assume that it may not guarantee atomicity, especially in distributed systems like Prefect. You might want to handle potential inconsistencies or errors in your application logic if atomicity is a concern.
For more details, you can explore the artifacts.py source code. If atomicity is crucial for your use case, consider implementing additional safeguards in your workflow.Jackson Nguyen
01/14/2025, 12:56 AMMarvin
01/14/2025, 12:56 AM{PREFECT_UI_BASE_URL}/flow-runs/{flow_run_id}/artifacts/{artifact_id}
3. Access the Prefect UI: Navigate to the constructed URL in your web browser to view the artifact.
For more information, you can explore the Prefect Artifacts documentation. If you need more specific guidance based on your Prefect setup, feel free to ask!Jackson Nguyen
01/14/2025, 1:00 AMMarvin
01/14/2025, 1:00 AM{PREFECT_UI_BASE_URL}/flow-runs/{sub_flow_run_id}
3. Access the Prefect UI: Enter the constructed URL in your web browser to view the sub-flow details.
This approach assumes you have access to the necessary metadata to identify the sub-flow's run ID. If you need further guidance based on your specific Prefect setup, feel free to ask!