Skip to content

🐛 Bug Report: Functions are not executing on event trigger. #7205

Closed

Description

@chakshumraval

👟 Reproduction steps

I have create event for executing functions like this databases.65020b0c9aaaa0695a28.collections.65132022df21b5237691.documents.*. but it someone time working and some time not. it seem's like event triggered functions are not reliable. i have created multiple functions and i am facing issue in all of them

I have also checked permission of the document collections and also function that are fine.

👍 Expected behavior

Function should be executed when defined events are triggered

👎 Actual Behavior

Only 2-3 time function is executed when i create same document 10 times

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

I am using Version 1.4.2

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Nov 26, 2023
  2. moshOntong-IT commented on Nov 27, 2023

    @moshOntong-IT

    I encountered this issue as well. Sometimes the execution is delay as well. It takes time to reflect the execution on the console logs.

  3. chakshumraval commented on Nov 29, 2023

    @chakshumraval
    Author

    Any update on this ? Now my function is not executing anymore with event trigger. May be i have added one more attribute in the collection, due to that it was stopped ?

  4. added
    product / functions
    on Dec 11, 2023
  5. self-assigned this
    on Dec 11, 2023
  6. stnguyen90 commented on Dec 11, 2023

    @stnguyen90
    Contributor

    @chakshumraval would you please check the docker logs from the appwrite-worker-functions container to see if there are any errors?

  7. chakshumraval commented on Dec 16, 2023

    @chakshumraval
    Author

    Screenshot 2023-12-16 at 12 02 45 PM

    [Job] (65775e3272ed01.98024661) successfully run.
    [Job] Received Job (65775e33759251.69488999).
    Fetched 7 functions...
    [Job] (65775e33759251.69488999) successfully run.
    [Job] Received Job (65775e3412d431.66825822).
    Fetched 7 functions...
    [Job] (65775e3412d431.66825822) successfully run.
    [Job] Received Job (65775e39644957.39857084).
    [Job] (65775e2dd70d74.49222130) failed to run.
    [Job] (65775e2dd70d74.49222130) Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
    [Error] Type: Exception
    [Error] Message: Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
    [Error] File: /usr/src/code/app/workers/functions.php
    [Error] Line: 284
    Fetched 7 functions...
    [Job] (65775e39644957.39857084) successfully run.
    [Job] Received Job (657764ff4020b7.49798355).
    Fetched 7 functions...
    Iterating function: PushNotificationDart
    [Job] (657764ff4020b7.49798355) failed to run.
    [Job] (657764ff4020b7.49798355) Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
    [Error] Type: Exception
    [Error] Message: Multiple internal curl errors has occurred within the executor! Error Number: 111. Error Msg: Connection refused
    [Error] File: /usr/src/code/app/workers/functions.php
    [Error] Line: 284
    

    There is no proper error has been printed to analyse further

  8. chakshumraval commented on Mar 4, 2024

    @chakshumraval
    Author

    Any update on issue ?

  9. stnguyen90 commented on Mar 7, 2024

    @stnguyen90
    Contributor

    @chakshumraval, apologies for the delay. So you're saying the execution doesn't show up in the console at all? Do you have multiple functions that trigger on the same event?

  10. chakshumraval commented on Mar 7, 2024

    @chakshumraval
    Author

    @stnguyen90 Yes.. functions are not triggering and not showing up in console. We have multiple functions that trigger on the same event

  11. stnguyen90 commented on Mar 7, 2024

    @stnguyen90
    Contributor

    @chakshumraval, I wonder if one of the other functions is erroring out and then it causes the others to not process. 🧐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugproduct / functions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions