Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[Question] Sorry is there a simple quickstart I can follow so I can play with this? #1

Answered by firdaus
simkimsia asked this question in Q&A
Discussion options

You must be logged in to vote
import asyncio
import sys
import logging
from datetime import timedelta

from temporal.activity_method import activity_method
from temporal.workerfactory import WorkerFactory
from temporal.workflow import workflow_method, Workflow, WorkflowClient

logging.basicConfig(level=logging.INFO)

TASK_QUEUE = "HelloActivity-python-tq"
DOMAIN = "default"

# Activities Interface
class GreetingActivities:
    @activity_method(task_queue=TASK_QUEUE, schedule_to_close_timeout=timedelta(seconds=1000))
    def compose_greeting(self, greeting: str, name: str) -> str:
        raise NotImplementedError


# Activities Implementation
class GreetingActivitiesImpl:
    def compose_greeting(self, greeting: str, n…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@simkimsia
Comment options

@firdaus
Comment options

Comment options

You must be logged in to vote
2 replies
@simkimsia
Comment options

@simkimsia
Comment options

Answer selected by simkimsia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1 on December 29, 2020 04:56.