little-lock-48902
07/31/2024, 5:28 AMancient-wolf-19325
07/31/2024, 5:28 AMlittle-lock-48902
07/31/2024, 5:31 AMancient-wolf-19325
07/31/2024, 5:31 AMpyflyte run
, which is useful for quick iterations and testing (source).
Would you like more details on setting up the Flyte Sandbox or running workflows locally?
Sources:
- https://github.com/flyteorg/flyte/issues/2903
- https://github.com/flyteorg/flyte/blob/master/docs/getting_started_with_workflow_development/running_a_workflow_locally.md 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.little-lock-48902
07/31/2024, 5:32 AMancient-wolf-19325
07/31/2024, 5:32 AMlittle-lock-48902
07/31/2024, 5:33 AMancient-wolf-19325
07/31/2024, 5:33 AMlittle-lock-48902
07/31/2024, 5:36 AMancient-wolf-19325
07/31/2024, 5:36 AMfrom flytekit import task, workflow
import pandas as pd
@task
def generate_data() -> pd.DataFrame:
data = {'col1': [1, 2], 'col2': [3, 4]}
return pd.DataFrame(data)
@task
def process_data(df: pd.DataFrame) -> pd.DataFrame:
df['col3'] = df['col1'] + df['col2']
return df
@workflow
def data_workflow() -> pd.DataFrame:
df = generate_data()
result = process_data(df=df)
return result
Would you like more details on configuring storage or handling specific data types?
Sources:
- https://docs.flyte.org/en/latest/concepts/data_management.html#metadata
- https://docs.flyte.org/en/latest/concepts/data_management.html 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.little-lock-48902
07/31/2024, 5:36 AMancient-wolf-19325
07/31/2024, 5:36 AMflytekit
, which is extensively documented and widely used for developing tasks and workflows (source).
2. Java/Scala: Flyte also supports Java and Scala through the flytekit-java
SDK, which allows you to define and execute tasks and workflows in these languages (source).
Would you like more details on setting up the SDKs or examples in a specific language?
Sources:
- https://flytekit.readthedocs.io
- https://github.com/spotify/flytekit-java 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.little-lock-48902
07/31/2024, 6:07 AMancient-wolf-19325
07/31/2024, 6:07 AMcloudEvents:
enable: true
aws:
region: us-east-2
eventsPublisher:
eventTypes:
- all # or node, task, workflow
topicName: arn:aws:sns:us-east-2:123456:123-my-topic
type: aws
Would you like more details on configuring specific integrations or examples of use cases?
Sources:
- https://docs.flyte.org/en/latest/deployment/cluster_config/cloud_event.html 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.little-lock-48902
07/31/2024, 6:09 AMancient-wolf-19325
07/31/2024, 6:09 AMimport boto3
from flytekit import task, workflow
@task
def poll_sqs(queue_url: str) -> str:
sqs = boto3.client('sqs')
response = sqs.receive_message(QueueUrl=queue_url, MaxNumberOfMessages=1)
messages = response.get('Messages', [])
if messages:
message = messages[0]
receipt_handle = message['ReceiptHandle']
sqs.delete_message(QueueUrl=queue_url, ReceiptHandle=receipt_handle)
return message['Body']
return "No messages"
@workflow
def event_driven_workflow(queue_url: str) -> str:
return poll_sqs(queue_url=queue_url)
Would you like more details on any specific integration or example?
Sources:
- https://github.com/flyteorg/flytesnacks/blob/master/examples/productionizing/productionizing/lp_schedules.py
- https://docs.flyte.org/en/latest/deployment/cluster_config/eventing.html 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.little-lock-48902
07/31/2024, 6:29 AMancient-wolf-19325
07/31/2024, 6:29 AMlittle-lock-48902
07/31/2024, 6:39 AMancient-wolf-19325
07/31/2024, 6:39 AMlittle-lock-48902
07/31/2024, 6:45 AMancient-wolf-19325
07/31/2024, 6:45 AMaverage-finland-92144
07/31/2024, 10:33 AMbumpy-match-83743
08/01/2024, 2:32 PMancient-wolf-19325
08/01/2024, 2:32 PMkubectl
and third-party monitoring solutions for tracking job status and logs.
Would you like more details on any specific aspect of Flyte or Kubernetes jobs?
Sources:ancient-wolf-19325
08/01/2024, 2:33 PM