Skip to content

Instantly share code, notes, and snippets.

View crscheid's full-sized avatar

Christopher Scheidel crscheid

  • Connecticut / USA
View GitHub Profile
@crscheid
crscheid / prefect_2.0_rename_flows.py
Last active May 25, 2023 16:20
Sample code for renaming flows in Prefect 2.0 at runtime
import prefect
from prefect import flow, task, get_run_logger
import requests
import json
import time
from random import randint, random
def rename_flow_run(new_name: str):