Example #1
0
def delete(source_: Source):
    if source_.pipelines:
        raise Exception(
            f"Can't delete. Source is used by {', '.join([p.name for p in source_.pipelines])} pipelines"
        )
    Session.delete(source_)
    Session.commit()
Example #2
0
def delete(streamsets: StreamSets):
    Session.delete(streamsets)
    Session.commit()
Example #3
0
def delete_auth_token(token: AuthenticationToken):
    Session.delete(token)
    Session.commit()
Example #4
0
def delete():
    if not exists():
        return
    Session.delete(get())
    Session.commit()
Example #5
0
def delete_offset(pipeline_offset: PipelineOffset):
    Session.delete(pipeline_offset)
    Session.commit()
Example #6
0
def delete(pipeline_: Pipeline):
    Session.delete(pipeline_)
    Session.commit()
Example #7
0
def delete_pipeline_retries(pipeline_retries: PipelineRetries):
    Session.delete(pipeline_retries)
    Session.commit()