Prefect Supporter
Project description
prefect_supporter
prefect_supporter provide services to supporter to manage Prefect
Usage
- Delete
flow run
history in Database. It also deletestask 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 )
- create your deployment
- 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
Built Distribution
File details
Details for the file prefect_supporter-1.0.0.tar.gz
.
File metadata
- Download URL: prefect_supporter-1.0.0.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/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a7704751cbeae26e9c8d4534e9256a40121f6ab4bf1445407a7e0f0b80cecb |
|
MD5 | d451f969e540379b50d00f2fac8bc4b9 |
|
BLAKE2b-256 | 8e0585bf65c4691423e4282a1b33b85d2c882967cae85921c42898bc7a1855e7 |
File details
Details for the file prefect_supporter-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: prefect_supporter-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.16 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05ac621ea084cdd918051d3334cf89c94c1ff1f9b42da3460eb2351b38788737 |
|
MD5 | 2d753f02dedf32d1f12349e54dbc0f60 |
|
BLAKE2b-256 | f4cb1d917439ff0b35f55dfe02feca1ecd9d37439e11c84f094c13bcc38a0f12 |