https://prefect.io
Join Slack
Hey <@ULVA73B9P>. Prefect 3 caches the task input parameters. I have a huge class I’m passing to eve...
f

Florian Giroud

over 1 year ago
Hey @Marvin. Prefect 3 caches the task input parameters. I have a huge class I’m passing to every task, is there a way to avoid that class to be cached, globally ? by adding something in the class itself ?
f
m
n
  • 3
  • 7
  • 154
<@ULVA73B9P> can I include AdaptiveCard JSON in the body of my MS Teams notification?
j

Jason Fitch

almost 2 years ago
@Marvin can I include AdaptiveCard JSON in the body of my MS Teams notification?
j
m
  • 2
  • 5
  • 154
Hello, consider I have a prefect server on EC2 (AWS), can I deploy a flow in a sagemaker processing ...
k

Kevin Takano

over 3 years ago
Hello, consider I have a prefect server on EC2 (AWS), can I deploy a flow in a sagemaker processing job and see the flow in the EC2 server?
✅ 1
k
r
  • 2
  • 5
  • 154
Hey folks, I just had a flow run failing because of "prefect.exceptions.MissingResult: State data is...
a

Andreas Nigg

over 3 years ago
Hey folks, I just had a flow run failing because of "prefect.exceptions.MissingResult: State data is missing. Typically, this occurs when result persistence is disabled and the state has been retrieved from the API." This flow runs several times per day and always succeeded before and also after this incident. The good thing for me: The flow entered failed state and als the logs show an exception - but the flow itself continued after the exception and all the "results" of the pipeline were achieved. Looking at the Exception (in the Thread), is there something I'm missing, or is this maybe something for a github issue? (prefect 2.6.6, prefect cloud)
a
t
m
  • 3
  • 4
  • 154
Hello, I'm very new here so apologies for the question if it sounds newbie-like - I'm currently revi...
s

Sang Young Noh

over 4 years ago
Hello, I'm very new here so apologies for the question if it sounds newbie-like - I'm currently reviewing some prefect 1.0 code with mind to refactor into prefect 2.0, and one of the functions for prefect that is currently being used is prefect.core.parameter.DateTimeParameter, which doesnt seem to be supported in prefect 2.0. Is that the correct interpretation? If so, what would be prefect 2.0 alternative for this? Thanks in advance
👋 1
s
a
  • 2
  • 52
  • 154
I apologize if this has been asked before. Is there any way that I can return a dictionary from one ...
t

Tim Wright

over 4 years ago
I apologize if this has been asked before. Is there any way that I can return a dictionary from one Task and use it as the input kwargs for another task? More specifically I want a task that returns a Dictionary and I want to pass its result to another task using variable unpacking...
dict_result = some_task()
some_other_task(**dict_result)
Is this doable? Is there a more Prefect-y way to accomplish this without creating a Parameter for eahc element of the dictionary? I ultimately want to pass as an input a list of dictionaries which I can then operate over using Prefect's mapping, so being able to define the collection of arguments together is important.
t
k
  • 2
  • 11
  • 154
Hello, Is there a way to set the cache_policy to None by default? Most of our task needed to be reru...
j

Jezreel Zamora

over 1 year ago
Hello, Is there a way to set the cache_policy to None by default? Most of our task needed to be rerun and the caching is causing multiple issues on our tasks.
j
b
  • 2
  • 5
  • 153
<@ULVA73B9P> How to get the result of the run_deployment?
b

Bo Lin

about 2 years ago
@Marvin How to get the result of the run_deployment?
b
m
  • 2
  • 5
  • 153
Am having trouble loading a .env file using python-dotenv within Prefect. Within `Deployment.build_f...
s

Simon

about 3 years ago
Am having trouble loading a .env file using python-dotenv within Prefect. Within
Deployment.build_from_flow
, am setting
is_schedule_active=ENV == "production"
based upon whether the env is production, or not. This is determined by an import from another file:
from common.config import ENV
and in that file is:
# have also tried dotenv.find_dotenv() without success
dotenv_path = os.path.abspath(os.path.join(__file__, "../../../.env"))
if not os.path.isfile(dotenv_path):
    raise RuntimeError(dotenv_path)
This loads happily in a local ipython shell. But when run as a prefect flow, the folder structure appears to be different:
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/private/var/folders/d8/sqvg_pms3pd0xvcl2tvvxhqr0000gn/T/tmp8e6a8h47prefect/prefect_daily_internal_metric.py", line 9, in <module>
    from common.config import ENV
  File "/private/var/folders/d8/sqvg_pms3pd0xvcl2tvvxhqr0000gn/T/tmp8e6a8h47prefect/common/config.py", line 9, in <module>
    raise RuntimeError(dotenv_path)
RuntimeError: /private/var/folders/d8/sqvg_pms3pd0xvcl2tvvxhqr0000gn/T/.env
s
n
  • 2
  • 27
  • 153
I’m wondering if and how prefect could be used to transfer large amounts of data between different s...
m

Matias

almost 7 years ago
I’m wondering if and how prefect could be used to transfer large amounts of data between different servers/clouds. Basically, I’d need to move 10-100 gigabyte csv/Jason files from an SFTP server to ADLS, and later on between other sources and sinks. Moving this amount of data as a one gigantic in memory string between tasks does not seem very sound approach for many reasons. So how would you actually do that?
m
j
+3
  • 5
  • 18
  • 153
Previous555657Next

Prefect Community

Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.

Powered by