File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717)
1818from workflows import (
1919 CommunityWebsiteWorkflow ,
20- SayHello ,
2120 WebsiteIngestionSchedulerWorkflow ,
2221 MediaWikiETLWorkflow ,
2322 PlatformSummariesWorkflow ,
2625
2726WORKFLOWS = [
2827 CommunityWebsiteWorkflow ,
29- SayHello ,
3028 WebsiteIngestionSchedulerWorkflow ,
3129 MediaWikiETLWorkflow ,
3230 PlatformSummariesWorkflow ,
Original file line number Diff line number Diff line change 2020# Configure logging
2121logging .basicConfig (level = logging .INFO )
2222logger = logging .getLogger (__name__ )
23-
24-
25- # For test purposes
26- # To be deleted in future
27- @workflow .defn
28- class SayHello :
29- @workflow .run
30- async def run (self ) -> int :
31- logger .info (f"Hello at time { workflow .now ()} !" )
32- return await workflow .start_activity (
33- say_hello , start_to_close_timeout = timedelta (seconds = 5 )
34- )
You can’t perform that action at this time.
0 commit comments