Manage workflows¶
Retrieve workflow¶
By ID¶
Retrieve an existing workflow by its ID:
Coming soon
Retrieve workflow by its ID | |
---|---|
1 2 3 4 5 6 7 |
|
- You can find a workflow by its identifier using the
find_by_id()
method of the workflow client, providing theid
for the specific workflow. In this example, we're retrieving theSnowflakeMiner
workflow.
Coming soon
By type¶
Retrieve existing workflows by its type:
Retrieve workflows by its type | |
---|---|
1 2 |
|
- You can search for existing workflows through the
WorkflowSearchRequest
class. - You can find workflows by their type using the
findByType()
helper method and providing the prefix for one of the packages. In this example, we do so for theSnowflakeMiner
. (You can also specify the maximum number of resulting workflows you want to retrieve as results.)
Retrieve workflows by its type | |
---|---|
1 2 3 4 5 6 7 8 |
|
- You can find workflows by their type using the workflow client
find_by_type()
method and providing the prefix for one of the packages. In this example, we do so for theSnowflakeMiner
. (You can also specify the maximum number of resulting workflows you want to retrieve as results.)
Retrieve workflows by its type | |
---|---|
1 2 |
|
- You can search for existing workflows through the
WorkflowSearchRequest
class. - You can find workflows by their type using the
findByType()
helper method and providing the prefix for one of the packages. In this example, we do so for theSnowflakeMiner
. (You can also specify the maximum number of resulting workflows you want to retrieve as results.)
Update workflow source credentials¶
To update workflow source credentials for example, for Snowflake:
Update workflow source credentials | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- You can retrieve the workflow credential object by providing its
GUID
. - You must specify the authentication type of the credential.
- You must provide the sensitive details such as the
username
,password
, andextra
when updating credentials. This behavior aligns with the Atlan workflow config update UI. - Build the minimal
Credential
object. - Now, use the
update()
method of theCredential
object to update this new credentials in Atlan after initially testing it for successful validation.
Update workflow source credentials | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
- You can retrieve the workflow credential object by providing its
GUID
. - You must specify the authentication type of the credential.
- You must provide the sensitive details such as the
username
,password
, andextras
when updating credentials. This behavior aligns with the Atlan workflow config update UI. - Now, pass the
credential
object to thetest_and_update()
method to update this new credentials in Atlan after initially testing it to confirm its successful validation.
Update workflow source credentials | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- You can retrieve the workflow credential object by providing its
GUID
. - You must specify the authentication type of the credential.
- You must provide the sensitive details such as the
username
,password
, andextra
when updating credentials. This behavior aligns with the Atlan workflow config update UI. - Build the minimal
Credential
object. - Now, use the
update()
method of theCredential
object to update this new credentials in Atlan after initially testing it for successful validation.
Update workflow configuration¶
To update workflow configuration for example, for Snowflake:
Coming soon
Update workflow configuration | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
- You can find a workflow by its identifier using the
find_by_id()
method of the workflow client, providing theid
for the specific workflow. In this example, we're retrieving theSnowflake
workflow for an update. - Retrieve the workflow template and specific task that you need to update.
- Update the specific workflow parameter. In this example,
we're enabling lineage for the
Snowflake
workflow. - Convert the workflow search result object to a workflow object
and pass that to the
update()
method to actually perform the workflow update in Atlan.
Coming soon
Retrieve workflow run¶
By ID¶
Retrieve an existing workflow run by its ID:
Coming soon
Retrieve workflow run by its ID | |
---|---|
1 2 3 4 5 6 7 |
|
- You can find a workflow run by its identifier using the
find_run_by_id()
method of the workflow client, providing theid
for the specific workflow run. In this example, we're retrieving the existingSnowflakeMiner
workflow run.
Coming soon
Retrieve all workflow runs¶
By their phase:¶
To retrieve all existing workflow runs based on
their phase, such as Succeeded
, Running
, Failed
, etc
Coming soon
Retrieve all workflow runs by their phase | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
-
To retrieve all existing workflow runs based on their phase, you need to specify:
- name of the workflow as displayed in the UI, eg:
atlan-snowflake-miner-1714638976
. - phase of the given workflow (e.g:
Succeeded
,Running
,Failed
, etc) - starting index of the search results (default:
0
). - maximum number of search results to return (default:
100
).
- name of the workflow as displayed in the UI, eg:
Coming soon
Stop a running workflow¶
To stop a running workflow:
Coming soon
Retrieve all workflow runs by their phase | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
- First, retrieve all existing running workflows.
- From the list of existing running workflows, provide
the identifier of the specific workflow run to the
client.workflow.stop()
method, e.g:atlan-snowflake-miner-1714638976-9wfxz
.
Delete a workflow¶
To delete a workflow:
Coming soon
Delete a workflow | |
---|---|
1 2 3 4 5 6 7 |
|
-
To delete an existing workflow, specify:
- name of the workflow as displayed in the
UI (e.g:
atlan-snowflake-miner-1714638976
).
- name of the workflow as displayed in the
UI (e.g:
Coming soon