Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timer trigger to Azure Functions Adapter #93

Closed
3 tasks done
mildronize opened this issue Jan 2, 2024 · 0 comments · Fixed by #94
Closed
3 tasks done

Add timer trigger to Azure Functions Adapter #93

mildronize opened this issue Jan 2, 2024 · 0 comments · Fixed by #94
Labels
v2 Nammatham v2 Related issues

Comments

@mildronize
Copy link
Collaborator

mildronize commented Jan 2, 2024

Feature

  • Add timer trigger

  • When Azure Functions Adapter used with expressPlugin, it should not allow to run both in production (Run with Azure Functions worker)

  • Add ability to convert all functions to http trigger in express server for dev testing. e.g.

    import { initNammatham } from '@nammatham/core';
    import { AzureFunctionsAdapter } from '@nammatham/azure-functions';
    import { expressPlugin } from '@nammatham/express';
    
    const n = initNammatham.create(new AzureFunctionsAdapter());
    const app = n.app;
    
    // Add option to express plugin that convert non-http trigger to http-trigger during express server start
    app.register(expressPlugin({
      isDevelopment: true,
      allowAllFunctionsAccessByHttp: true,
    }));

    Add option for allowAllFunctionsAccessByHttp for expressPlugin.
    However, to be safe, it should use with isDevelopment to be true or passing NAMMATHAM_ENV to be "development"

@mildronize mildronize added the v2 Nammatham v2 Related issues label Jan 2, 2024
@mildronize mildronize linked a pull request Jan 2, 2024 that will close this issue
@mildronize mildronize added this to the Version 2.0.0.beta milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Nammatham v2 Related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant