Skip to main content

Prefect Supporter

Project description

prefect_supporter

prefect_supporter provide services to supporter to manage Prefect

Usage

  1. Delete flow run history in Database. It also deletes task run
    • create your deployment
      • example
      Deployment.build_from_flow(
        flow=clear_db_history_flow,
        name="clear_db_history_deployment",
        schedule=None,
        work_queue_name="default",
        tags=["prefect-management"],
        parameters={
            "frc": FlowRunClearing(
                state_list=[StateType.COMPLETED],
                before_dt=datetime.now(),
                after_dt=datetime(year=1970, month=1, day=1, hour=0, minute=0)
            )
        },
        apply=True
       )
      
  • Parameter
    • FlowRunClearing model
      • api_url : your prefect api address, ex) http://localhost:4200/api
      • state_list: state list to delete ex) "COMPLETED", "FAILED"
      • before_dt : time range to delete data to be started
      • after_dt : time range to delete data to be ended

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prefect_supporter-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

prefect_supporter-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file prefect_supporter-1.0.1.tar.gz.

File metadata

  • Download URL: prefect_supporter-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/23.1.0

File hashes

Hashes for prefect_supporter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9727a4a55d6c86e3f721688e8d443d25276a47b4dd674e83412663f9492d3587
MD5 c25a5b6ed8e5030e65d28b8c56c93a87
BLAKE2b-256 d58751960701eddf7186a0ca8f354f6bb6b43e09f8070dba121a5ad9da89f43d

See more details on using hashes here.

File details

Details for the file prefect_supporter-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_supporter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b27439aac5ce403bb02651454f8729ed5097750ad9d4dfff012ab7771eda353
MD5 53dc3b9cde685b60031efddc98ed1cb9
BLAKE2b-256 ffc97e198094feda4b9fb2b3307fede35ff5c3381fc274fb6a69a76387a64822

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page