prefect icon indicating copy to clipboard operation
prefect copied to clipboard

enhancement: upload workdir anywhere for deploy

Open Ox0400 opened this issue 1 year ago • 2 comments

closes #13140

enhancement: upload workdir anywhere for deploy.

e.g:

    deploy_obj = Deployment.build_from_flow(
        flow=pipeline,
        name=name,
        apply=False,
        parameters = parameters,
        infra_overrides=infra_overrides,
        work_queue_name=ENV.WORK_QUEUE_NAME,
        work_pool_name=ENV.WORK_POOL_NAME,
        storage=file_helpers.get_codes_client(),
        storage_local_path='/var/work/projects/my-project',
    )

Example

Checklist

  • [ ] This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • [ ] If this pull request adds new functionality, it includes unit tests that cover the changes
  • [ ] This pull request includes a label categorizing the change e.g. maintenance, fix, feature, enhancement, docs.

For documentation changes:

  • [ ] This pull request includes redirect settings in netlify.toml for files that are removed or renamed.

For new functions or classes in the Python SDK:

  • [ ] This pull request includes helpful docstrings.
  • [ ] If a new Python file was added, this pull request contains a stub page in the Python SDK docs and an entry in mkdocs.yml navigation.

Ox0400 avatar Apr 28 '24 08:04 Ox0400

Deploy request for prefect-docs-preview pending review.

Visit the deploys page to approve it

Name Link
Latest commit 94c6b4335da307be2715b242f9aa37acb3f75bf1

netlify[bot] avatar Apr 28 '24 08:04 netlify[bot]

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

github-actions[bot] avatar May 24 '24 08:05 github-actions[bot]

This pull request was closed because it has been stale for 14 days with no activity. If this pull request is important or you have more to add feel free to re-open it.

github-actions[bot] avatar Jun 07 '24 08:06 github-actions[bot]