You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
419 B
Python
20 lines
419 B
Python
from temporalio.client import Client
|
|
from workflows.historical_migration import DataMigrationWorkflow
|
|
|
|
|
|
async def run():
|
|
# Start workflow
|
|
|
|
client = await Client.connect("192.168.1.82:7233")
|
|
|
|
handle = await client.start_workflow(
|
|
DataMigrationWorkflow.run,
|
|
id="data-migration",
|
|
task_queue="migration-queue"
|
|
)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import asyncio
|
|
asyncio.run(run()) |