ciokatana


Nameciokatana JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/ConductorTechnologies/ciokatana
SummaryKatana plugin for Conductor Cloud Rendering Platform.
upload_time2023-08-05 06:22:13
maintainer
docs_urlNone
authorconductor
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Conductor for Katana

Submit to Conductor from The Foundry's Katana.

## Install

`pip install  ciokatana==<some version> --target ~/Conductor/katana && python ~/Conductor/katana/ciokatana/post_install.py`

For reference, the plugin is implemented as a Katana SuperTool, and the `post_install.py` script registers the plugin by writing an `init` file into the Katana resources path. See the contents of `post_install.py` for more details.

## Usage

### Open the Conductor dialog

If installation was successful, you should see a **Conductor** menu item in Katana's **Util** menu. If you don't see it, try restarting Katana.

To open the Conductor dialog select the **Conductor** menu item in the **Util** menu. If no **Render** nodes are selected in the node graph, the dialog will be pre-populated with all **Render** nodes in the scene.

### Tabs

You'll notice 5 tabs. **Configure**, **Preview**, **Validation**, **Progress**, and **Response**

### Configure Tab

Most parameters in the submitter, such as those in the **General**, **Hardware**, and **Software** sections of the **Configure** tab are explained in tooltips (TBD). Please hover over the labels in the dialog itself for more info on these. This document will focus on the *Katana specific* parameters as they relate to multi-shot setups and to using mocks for demo purposes.

### Frames and Tasks section.

Here you'll find a list of **Render** nodes that were in context when the dialog was opened. On submission, a separate job is shipped to Conductor for each node in this list. By default, the Frame spec, Scout spec, and Chunk size for each job are set to the values in this section of the submitter. These can be overridden.

To override the frame and chunk parameters, use the **Editor** button next to any Render node to display it in the Parameters panel. Open the **farmSettings** panel for the Render node, turn on **conductorOverrides**, and configure the individual **Render nodes**. You'll see the overridden values updated in the dialog.

### Preview Tab

The preview tab currently shows only the first submission. It is updated every time you switch to the Preview tab. This means that if you change something in the scene that would affect the submission, such as the name of a **Render** node, you'll need to switch to another tab and then back to the Preview tab to see the updated submission. 

### Validation Tab

Currently, only a couple of sample validations are implemented. 
In order to invoke a validation error for demo purposes, set the **frameSpec** for one of the render nodes to over 1000, with a **chunkSize** of 1. Then submit. You'll see a validation error in the **Validation** tab.
In order to invoke a validation warning for demo purposes, set the instance type to one of the GPU machines before submitting.

### Progress Tab

The progress tab shows the progress of the submission. There are 3 progress bars and a file upload progress panel. The 3 progress bars are as follows.
1. Overall submission progress. For a submission of 4 jobs, this will be 25% when 1 job is complete, 50% when 2 jobs are complete, etc.
2. MD5 calculation progress. This often reaches 100% faster than the update interval.
3. Upload progress for the current job.

Since many if not all the file uploads are the same for each job, only the first job's upload will be slow enough to see the progress bar increment. The second and subsequent job's files won't need to be uploaded.

This becomes clearer in the **File Upload Progress panel**. This panel shows the files that are being uploaded for the current job. The small progress increase towards 100% for new files, but files that already exist on Conductor will show the word **Cached** on a purple background.

#### Canceling a submission

You can cancel a submission at any time by clicking the **Cancel** button. If you cancel a submission, the current job will throw a `UserCanceled` error and the remaining jobs will not be started. The UI will switch to the **Responses** tab which will show `UserCanceled` error with a **warning** status. You'll also see the responses for any jobs that were submitted successfully before the cancelation.

You can simulate a cancelation in a mock submission. To do this, set the **mockInterval** high enough that you get a chance to react, then hit submit. After a few seconds, click the **Cancel** button. The current job will throw a `UserCanceled` error and the remaining jobs will not be started, even if the mock submission contains several jobs that submitted successfully.

#### Submission errors

If a submission error occurs, the current job will of course fail. However, subsequent jobs will continue to attempt to submit, because although it's unlikely, the error may have been peculiar to the one job. After all jobs have submitted, the Responses tab will show the error for the failed job(s) with an **error** status. The responses for the successful jobs will also be shown. 

You can simulate a submission error in a mock submission. To do this, set the **mockInterval** high enough that you get a chance to react, then hit submit. After a few seconds, click the **Raise an error** button. The current job will throw a random error which will cause the current job progress to stop, and just as with a real submission, the remaining jobs will continue to submit. After all jobs have submitted, the Responses tab will show the error for the failed job(s) The responses for the successful jobs will also be shown.

### Response Tab

The responses tab shows a response for every job that ran to completion. There are 3 possible response statuses:
1. Errors. These are shown with a red icon. You'll see a summary in the response card, but you can view the full error stack trace by clicking the **Show Details** button.
2. Warnings. These are shown with a yellow icon. They may or may not have an expandable details panel.
3. Success. These are shown with a green icon. Since this means the job was submitted to Conductor, you'll see a link to the job on the dashboard. Clicking this link will open the job in a new browser tab.

### Mocks.

A mock submission pretends to be a real submission, but is actually a list of pre-baked events in a JSON file. It is useful for testing and demo purposes. The events in the mock feed the the progress tab and the responses tab in the same way that a real submission would. Therefore, by playing back a mock submission, you can simulate a real submission.

To enable mocks set the environment variable `CIO_FEATURE_MOCK=1` before starting Katana.

With mocks enabled you'll see some parameters in the **Advanced** section related to mocking a submission. 

There is a mock submission included with the plugin. It is located at `~/Conductor/katana/ciokatana/scripts/mock_submission.json`. You can use this mock to test the submission process or you can create your own. The included mock submission contains four render jobs.

#### To use the included mock:
1. In the advanced section, set **mockMode** to **Use Mock**.
2. For **mockFile**, either browse to `~/Conductor/katana/ciokatana/scripts/mock_submission.json`, or better, copy `~/Conductor/katana/ciokatana/scripts/mock_submission.json` to your home folder and browse to the copy.
3. Set an interval for **mockInterval**. This is the time paused between events in the mock submission. The default is 1 second, which is faster than a real submission. You can set this to a higher value to slow down the playback. The minimum value is 0.05 seconds.
4. Submit as usual. The progress tab and the response tab will be updated as if a real submission was taking place. Note however, that no real jobs are submitted to Conductor and no files are uploaded. The responses tab will contain lins to jobs on the dashboard, but these links will not relate to the submission since the included mock file was created on a different account.

#### To create your own mock:

An advantage to creating your own mock is that the responses tab will contain links to jobs on the dashboard that are relevant to your account, since they come from a real submission. To create your own mock, follow these steps:

1. In the advanced section, set **mockMode** to **Generate Mock**.
2. For **mockFile**, browse to a location where you want to save the mock file.
3. Submit as usual. As the real submission runs, all the events arte streamed to the mock file. When the submission is complete, the mock file is ready to be replayed.
4. To use this new mock, switch mockMode to **Use Mock** as described above.

## Changelog

## Version:0.1.3 -- 05 Aug 2023

* 19 snagging list 2 (#21)
    * Add the ability to choose what job to display in the Preview  window
    * Asset scrape: removes assets in output_path
    * Reconnect re-reads everything and rebuilds menus.
    * Validate that paths use project.dir or some expression
    * Removed reloading in shelf items, which was the cause of import confusion.
    * Ignore tmp folder when calculating the output folder
## Version:0.1.3-rc.1 -- 04 Aug 2023

* don't consider relative AOV outputs.

## Version:0.1.2 -- 03 Aug 2023

* Fixed a bug that would fail to create a submission when a render node has multiple outputs. (#20)

## Version:0.1.1 -- 02 Aug 2023

* Use a more descriptive environment variabler for mocks: CIO_FEATURE_MOCK and fix bad rehydration project and instance type combo boxes (#18)

## Version:0.1.0 -- 02 Aug 2023

* 16 snagging list (#17)

## Version:0.1.0-rc.5 -- 01 Aug 2023

* Only use json_stream when the variable CIO_FEATURE_DEV is on. Set the variable then pip install to enable the mock framework. The mock framework allows you to use fake submissions that look just like normal submissions without actually submitting anything.
* Update circleCI config for prettier slack notifications and to fix the links now that we trigger on tags and not branches.
* Made a bigger editor panel, which can be good for screenshots.
* Asset scraping blacklist catches more bad paths.
* Use Alaa's progress-math so that the progress bar is more accurate.
* Adds some debugging shelf items

## Version:0.1.0-rc.3 -- 26 Jul 2023
* Adds asset scraping

## Version:0.1.0-rc.2 -- 24 Jul 2023
* Added a README file and several small fixes.
* First release candidate.
* Integrated with the FarmAPI

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ConductorTechnologies/ciokatana",
    "name": "ciokatana",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "conductor",
    "author_email": "info@conductortech.com",
    "download_url": "",
    "platform": null,
    "description": "# Conductor for Katana\n\nSubmit to Conductor from The Foundry's Katana.\n\n## Install\n\n`pip install  ciokatana==<some version> --target ~/Conductor/katana && python ~/Conductor/katana/ciokatana/post_install.py`\n\nFor reference, the plugin is implemented as a Katana SuperTool, and the `post_install.py` script registers the plugin by writing an `init` file into the Katana resources path. See the contents of `post_install.py` for more details.\n\n## Usage\n\n### Open the Conductor dialog\n\nIf installation was successful, you should see a **Conductor** menu item in Katana's **Util** menu. If you don't see it, try restarting Katana.\n\nTo open the Conductor dialog select the **Conductor** menu item in the **Util** menu. If no **Render** nodes are selected in the node graph, the dialog will be pre-populated with all **Render** nodes in the scene.\n\n### Tabs\n\nYou'll notice 5 tabs. **Configure**, **Preview**, **Validation**, **Progress**, and **Response**\n\n### Configure Tab\n\nMost parameters in the submitter, such as those in the **General**, **Hardware**, and **Software** sections of the **Configure** tab are explained in tooltips (TBD). Please hover over the labels in the dialog itself for more info on these. This document will focus on the *Katana specific* parameters as they relate to multi-shot setups and to using mocks for demo purposes.\n\n### Frames and Tasks section.\n\nHere you'll find a list of **Render** nodes that were in context when the dialog was opened. On submission, a separate job is shipped to Conductor for each node in this list. By default, the Frame spec, Scout spec, and Chunk size for each job are set to the values in this section of the submitter. These can be overridden.\n\nTo override the frame and chunk parameters, use the **Editor** button next to any Render node to display it in the Parameters panel. Open the **farmSettings** panel for the Render node, turn on **conductorOverrides**, and configure the individual **Render nodes**. You'll see the overridden values updated in the dialog.\n\n### Preview Tab\n\nThe preview tab currently shows only the first submission. It is updated every time you switch to the Preview tab. This means that if you change something in the scene that would affect the submission, such as the name of a **Render** node, you'll need to switch to another tab and then back to the Preview tab to see the updated submission. \n\n### Validation Tab\n\nCurrently, only a couple of sample validations are implemented. \nIn order to invoke a validation error for demo purposes, set the **frameSpec** for one of the render nodes to over 1000, with a **chunkSize** of 1. Then submit. You'll see a validation error in the **Validation** tab.\nIn order to invoke a validation warning for demo purposes, set the instance type to one of the GPU machines before submitting.\n\n### Progress Tab\n\nThe progress tab shows the progress of the submission. There are 3 progress bars and a file upload progress panel. The 3 progress bars are as follows.\n1. Overall submission progress. For a submission of 4 jobs, this will be 25% when 1 job is complete, 50% when 2 jobs are complete, etc.\n2. MD5 calculation progress. This often reaches 100% faster than the update interval.\n3. Upload progress for the current job.\n\nSince many if not all the file uploads are the same for each job, only the first job's upload will be slow enough to see the progress bar increment. The second and subsequent job's files won't need to be uploaded.\n\nThis becomes clearer in the **File Upload Progress panel**. This panel shows the files that are being uploaded for the current job. The small progress increase towards 100% for new files, but files that already exist on Conductor will show the word **Cached** on a purple background.\n\n#### Canceling a submission\n\nYou can cancel a submission at any time by clicking the **Cancel** button. If you cancel a submission, the current job will throw a `UserCanceled` error and the remaining jobs will not be started. The UI will switch to the **Responses** tab which will show `UserCanceled` error with a **warning** status. You'll also see the responses for any jobs that were submitted successfully before the cancelation.\n\nYou can simulate a cancelation in a mock submission. To do this, set the **mockInterval** high enough that you get a chance to react, then hit submit. After a few seconds, click the **Cancel** button. The current job will throw a `UserCanceled` error and the remaining jobs will not be started, even if the mock submission contains several jobs that submitted successfully.\n\n#### Submission errors\n\nIf a submission error occurs, the current job will of course fail. However, subsequent jobs will continue to attempt to submit, because although it's unlikely, the error may have been peculiar to the one job. After all jobs have submitted, the Responses tab will show the error for the failed job(s) with an **error** status. The responses for the successful jobs will also be shown. \n\nYou can simulate a submission error in a mock submission. To do this, set the **mockInterval** high enough that you get a chance to react, then hit submit. After a few seconds, click the **Raise an error** button. The current job will throw a random error which will cause the current job progress to stop, and just as with a real submission, the remaining jobs will continue to submit. After all jobs have submitted, the Responses tab will show the error for the failed job(s) The responses for the successful jobs will also be shown.\n\n### Response Tab\n\nThe responses tab shows a response for every job that ran to completion. There are 3 possible response statuses:\n1. Errors. These are shown with a red icon. You'll see a summary in the response card, but you can view the full error stack trace by clicking the **Show Details** button.\n2. Warnings. These are shown with a yellow icon. They may or may not have an expandable details panel.\n3. Success. These are shown with a green icon. Since this means the job was submitted to Conductor, you'll see a link to the job on the dashboard. Clicking this link will open the job in a new browser tab.\n\n### Mocks.\n\nA mock submission pretends to be a real submission, but is actually a list of pre-baked events in a JSON file. It is useful for testing and demo purposes. The events in the mock feed the the progress tab and the responses tab in the same way that a real submission would. Therefore, by playing back a mock submission, you can simulate a real submission.\n\nTo enable mocks set the environment variable `CIO_FEATURE_MOCK=1` before starting Katana.\n\nWith mocks enabled you'll see some parameters in the **Advanced** section related to mocking a submission. \n\nThere is a mock submission included with the plugin. It is located at `~/Conductor/katana/ciokatana/scripts/mock_submission.json`. You can use this mock to test the submission process or you can create your own. The included mock submission contains four render jobs.\n\n#### To use the included mock:\n1. In the advanced section, set **mockMode** to **Use Mock**.\n2. For **mockFile**, either browse to `~/Conductor/katana/ciokatana/scripts/mock_submission.json`, or better, copy `~/Conductor/katana/ciokatana/scripts/mock_submission.json` to your home folder and browse to the copy.\n3. Set an interval for **mockInterval**. This is the time paused between events in the mock submission. The default is 1 second, which is faster than a real submission. You can set this to a higher value to slow down the playback. The minimum value is 0.05 seconds.\n4. Submit as usual. The progress tab and the response tab will be updated as if a real submission was taking place. Note however, that no real jobs are submitted to Conductor and no files are uploaded. The responses tab will contain lins to jobs on the dashboard, but these links will not relate to the submission since the included mock file was created on a different account.\n\n#### To create your own mock:\n\nAn advantage to creating your own mock is that the responses tab will contain links to jobs on the dashboard that are relevant to your account, since they come from a real submission. To create your own mock, follow these steps:\n\n1. In the advanced section, set **mockMode** to **Generate Mock**.\n2. For **mockFile**, browse to a location where you want to save the mock file.\n3. Submit as usual. As the real submission runs, all the events arte streamed to the mock file. When the submission is complete, the mock file is ready to be replayed.\n4. To use this new mock, switch mockMode to **Use Mock** as described above.\n\n## Changelog\n\n## Version:0.1.3 -- 05 Aug 2023\n\n* 19 snagging list 2 (#21)\n    * Add the ability to choose what job to display in the Preview  window\n    * Asset scrape: removes assets in output_path\n    * Reconnect re-reads everything and rebuilds menus.\n    * Validate that paths use project.dir or some expression\n    * Removed reloading in shelf items, which was the cause of import confusion.\n    * Ignore tmp folder when calculating the output folder\n## Version:0.1.3-rc.1 -- 04 Aug 2023\n\n* don't consider relative AOV outputs.\n\n## Version:0.1.2 -- 03 Aug 2023\n\n* Fixed a bug that would fail to create a submission when a render node has multiple outputs. (#20)\n\n## Version:0.1.1 -- 02 Aug 2023\n\n* Use a more descriptive environment variabler for mocks: CIO_FEATURE_MOCK and fix bad rehydration project and instance type combo boxes (#18)\n\n## Version:0.1.0 -- 02 Aug 2023\n\n* 16 snagging list (#17)\n\n## Version:0.1.0-rc.5 -- 01 Aug 2023\n\n* Only use json_stream when the variable CIO_FEATURE_DEV is on. Set the variable then pip install to enable the mock framework. The mock framework allows you to use fake submissions that look just like normal submissions without actually submitting anything.\n* Update circleCI config for prettier slack notifications and to fix the links now that we trigger on tags and not branches.\n* Made a bigger editor panel, which can be good for screenshots.\n* Asset scraping blacklist catches more bad paths.\n* Use Alaa's progress-math so that the progress bar is more accurate.\n* Adds some debugging shelf items\n\n## Version:0.1.0-rc.3 -- 26 Jul 2023\n* Adds asset scraping\n\n## Version:0.1.0-rc.2 -- 24 Jul 2023\n* Added a README file and several small fixes.\n* First release candidate.\n* Integrated with the FarmAPI\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Katana plugin for Conductor Cloud Rendering Platform.",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/ConductorTechnologies/ciokatana"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "265bfa2a5ab834f930153f4ab3eba895dfd5c30c0c5df1108c7abaaae801b85f",
                "md5": "93cbd9aeb5526455721ecd1ff1e21009",
                "sha256": "090475ce1c1ff2334176cc454accc0e2592da3f5962d73bb224d7e215a0ddcbc"
            },
            "downloads": -1,
            "filename": "ciokatana-0.1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93cbd9aeb5526455721ecd1ff1e21009",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 344425,
            "upload_time": "2023-08-05T06:22:13",
            "upload_time_iso_8601": "2023-08-05T06:22:13.000204Z",
            "url": "https://files.pythonhosted.org/packages/26/5b/fa2a5ab834f930153f4ab3eba895dfd5c30c0c5df1108c7abaaae801b85f/ciokatana-0.1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-05 06:22:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ConductorTechnologies",
    "github_project": "ciokatana",
    "github_not_found": true,
    "lcname": "ciokatana"
}
        
Elapsed time: 0.13660s