Skip to content

Timeout override now works #448#779

Closed
torazar wants to merge 1 commit into
ash-project:mainfrom
torazar:main
Closed

Timeout override now works #448#779
torazar wants to merge 1 commit into
ash-project:mainfrom
torazar:main

Conversation

@torazar

@torazar torazar commented Jun 16, 2026

Copy link
Copy Markdown

, and it won't simply default to the regular timeout if you changed that.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Comment thread lib/data_layer.ex

use Spark.Dsl.Extension,
sections: @sections,
transformers: [AshPostgres.Transformers.AddQueryTimeoutPreparation],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this? I don't think we have this preparation anywhere do we?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, that creates a preparation step behind the scene to handle that.

Comment thread lib/data_layer.ex
@impl true
def set_context(resource, data_layer_query, context) do
AshSql.Query.set_context(resource, data_layer_query, AshPostgres.SqlImplementation, context)
AshPostgres.Sql.Query.set_context(resource, data_layer_query, context)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this module anywhere either 🤔

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That points to a module in /lib/sql.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no lib/sql?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see... Guess I forgot to transfer it over. I'll do this merge over, I guess.

@zachdaniel zachdaniel closed this Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants