This is probably a dumb question, but is it possib...
# prefect-community
m
This is probably a dumb question, but is it possible to change or unregister a task when I'm developing a script in interactive mode? When I define a task it works fine, but if I edit the function for the task slightly and try to run the code to define it again I get the error
OSError: could not get source code
.
del the_task
does remove it from my environment, but then if I try to run the task definition again I still get the error. I'm not totally sure if this is a bug or expected behavior. Is my workflow here just wrong for prefect?
1
a
definitely not wrong for Prefect - are you on 1.0 or 2.0?
if you're getting started, I'd recommend checking out Prefect 2.0 which is the default version now, this way what you're describing is already possible and you don't have to register any flow or DAG, you can run it as a normal script interactively and register a deployment only when needed